Module: Enumerable
- Included in:
- HashMapper::PathMap
- Defined in:
- lib/hash_mapper.rb
Instance Method Summary collapse
Instance Method Details
#inject_with_index(injected) ⇒ Object
35 36 37 38 |
# File 'lib/hash_mapper.rb', line 35 def inject_with_index(injected) each_with_index{ |obj, index| injected = yield(injected, obj, index) } injected end |