class Hash

Public Instance Methods

symbolize_keys() click to toggle source

TODO figure out why symbols break the code. For now everything has to be in strings.

# File lib/elastix/extension.rb, line 114
def symbolize_keys
  self.keys.each do |key|
    self[(key.to_sym rescue key) || key] = self.delete(key)
  end
  self
end