Class: Hash

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



608
609
610
611
612
613
# File 'lib/sinatra/nice_easy_helpers.rb', line 608

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