Module: Tunable::Hasher
- Defined in:
- lib/tunable/hasher.rb
Class Method Summary collapse
Class Method Details
.flatten(hash, primary_key, secondary_key = nil) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/tunable/hasher.rb', line 5 def self.flatten(hash, primary_key, secondary_key = nil) if secondary_key.nil? hashify_using(hash, primary_key) else double_hashify_using(hash, primary_key, secondary_key) end end |