Method: Hash#apply_recursively
- Defined in:
- lib/arachni/ruby/hash.rb
#apply_recursively(method, *args) ⇒ Object
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/arachni/ruby/hash.rb', line 69 def apply_recursively( method, *args ) modified = {} each do |k, v| modified[k.send(method, *args)] = v.is_a?( Hash ) ? v.apply_recursively(method, *args) : v.send(method, *args) end modified end |