Method: Hash#expand
- Defined in:
- lib/bblib/core/util/hash.rb
#expand ⇒ Object
Expands keys in a hash using a delimiter. Opposite of squish.
121 122 123 124 125 126 127 |
# File 'lib/bblib/core/util/hash.rb', line 121 def {}.to_tree_hash.tap do |hash| each do |k, v| hash.bridge(k => v) end end.value end |