Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/fl/hash.rb
Overview
Extends Hash class ##
Instance Method Summary collapse
Instance Method Details
#each_nested_pair ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/fl/hash.rb', line 21 def each_nested_pair self.each_pair do |k,v| if v.is_a?(Hash) v.each_nested_pair {|k2,v2| yield "#{k}-#{k2}",v2} #-> RECURSION!! else yield(k,v) end end end |