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