Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/steamroller.rb
Instance Method Summary collapse
Instance Method Details
#flatten(joiner = ".", &block) ⇒ Object
2 3 4 5 |
# File 'lib/steamroller.rb', line 2 def flatten(joiner=".", &block) flat = combine_keys(self, joiner, [], &block).flatten Hash[*flat.map {|f| f.to_a}.flatten] end |