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
27 28 29 |
# File 'lib/serrano/utils.rb', line 27 def tostrings Hash[map { |(k, v)| [k.to_s, v] }] end |
#tosymbols ⇒ Object
33 34 35 |
# File 'lib/serrano/utils.rb', line 33 def tosymbols Hash[map { |(k, v)| [k.to_sym, v] }] end |