Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/groovy/model.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



6
7
8
# File 'lib/groovy/model.rb', line 6

def symbolize_keys
  self.inject({}) { |memo, (k,v)| memo[k.to_sym] = v; memo }
end