Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#symbolize_keys_without_active_supportObject



9
10
11
12
13
14
# File 'lib/requester/requester.rb', line 9

def symbolize_keys_without_active_support
  inject({}) do |options, (key, value)|
    options[(key.to_sym rescue key) || key] = value
  options
  end
end