Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/lokka/user.rb
Instance Method Summary collapse
Instance Method Details
#stringify ⇒ Object
54 55 56 57 58 59 |
# File 'lib/lokka/user.rb', line 54 def stringify inject({}) do |, (key, value)| [key.to_s] = value.to_s 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 |