Module: ArrayMod
- Defined in:
- lib/nested_hash_tricks/main.rb
Instance Method Summary collapse
Instance Method Details
#nested_set(k, v = nil) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/nested_hash_tricks/main.rb', line 49 def nested_set(k,v=nil) each do |x| v = yield(x) if block_given? x.nested_set(k,v) end end |