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
24 25 26 |
# File 'lib/serrano/utils.rb', line 24 def tostrings Hash[self.map{|(k,v)| [k.to_s,v]}] end |
#tosymbols ⇒ Object
30 31 32 |
# File 'lib/serrano/utils.rb', line 30 def tosymbols Hash[self.map{|(k,v)| [k.to_sym,v]}] end |