Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/bananomia/utils.rb,
lib/bananomia/utils.rb
Instance Method Summary collapse
Instance Method Details
#tostrings ⇒ Object
28 29 30 |
# File 'lib/bananomia/utils.rb', line 28 def tostrings map { |(k, v)| [k.to_s, v] }.to_h end |
#tosymbols ⇒ Object
34 35 36 |
# File 'lib/bananomia/utils.rb', line 34 def tosymbols map { |(k, v)| [k.to_sym, v] }.to_h end |