Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/google_apis/core_ext/hash.rb,
lib/google_apis/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#reverse_merge!(other) ⇒ Object



11
12
13
# File 'lib/google_apis/core_ext/hash.rb', line 11

def reverse_merge!(other)
  replace other.merge(self)
end

#symbolize_keysObject



3
4
5
# File 'lib/google_apis/core_ext/hash.rb', line 3

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