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