Module: Tripleloop::Util::Hash

Defined in:
lib/tripleloop/util.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



32
33
34
35
36
37
# File 'lib/tripleloop/util.rb', line 32

def symbolize_keys
  self.reduce({}){ |accu, (k,v)|
    v = v.extend(Util::Hash).symbolize_keys if v.respond_to?(:keys)
    accu.merge(k.to_sym => v) 
  }
end