Class: Hash

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#stringify_keysObject

Taken from Rails, with appreciation to DHH



14
15
16
17
18
19
# File 'lib/rscribd.rb', line 14

def stringify_keys
  inject({}) do |options, (key, value)|
    options[key.to_s] = value
    options
  end
end