Module: Gemmy::Patches::EnumeratorPatch::InstanceMethods::MapBy
- Defined in:
- lib/gemmy/patches/enumerator_patch.rb
Instance Method Summary collapse
-
#map_by(&blk) ⇒ Object
maps to hash Each iteration returns array [hash_key, hash_val] hash values are stored in arrays.
Instance Method Details
#map_by(&blk) ⇒ Object
maps to hash Each iteration returns array [hash_key, hash_val] hash values are stored in arrays
38 39 40 |
# File 'lib/gemmy/patches/enumerator_patch.rb', line 38 def map_by(&blk) clone.map_by &blk end |