Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/ns_connector/hash.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#stringify_keys! ⇒ Object
Turn all our keys into strings.
Instance Method Details
#stringify_keys! ⇒ Object
Turn all our keys into strings. Good for our @stores as they use strings from keys seeing as anything coming from JSON has strings for keys
5 6 7 8 9 10 |
# File 'lib/ns_connector/hash.rb', line 5 def stringify_keys! keys.each do |key| self[key.to_s] = delete(key) end self end |