Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#stringifyObject



54
55
56
57
58
59
# File 'lib/lokka/user.rb', line 54

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

#stringify!Object



61
62
63
64
65
66
# File 'lib/lokka/user.rb', line 61

def stringify!
  each do |key, value|
    delete(key)
    store(key.to_s, value.to_s)
  end
end