Module: Adaptive::Hash
- Defined in:
- lib/adaptive/hash.rb
Instance Method Summary collapse
- #adapt_to_hash ⇒ Object (also: #adapt)
Instance Method Details
#adapt_to_hash ⇒ Object Also known as: adapt
4 5 6 |
# File 'lib/adaptive/hash.rb', line 4 def adapt_to_hash ::Hash[adaptive.map{|k, methods| [k.to_s, resolve(object, methods)]}] end |