class Hash

Public Instance Methods

symbolize_keys() click to toggle source
# File lib/conductor/hash.rb, line 8
def symbolize_keys
  each_with_object({}) { |(k, v), hsh| hsh[k.to_sym] = (v.is_a?(Hash) || v.is_a?(Array)) ? v.symbolize_keys : v }
end
symbolize_keys!() click to toggle source
# File lib/conductor/hash.rb, line 4
def symbolize_keys!
  replace symbolize_keys
end