Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/gbifrb/utils.rb,
lib/gbifrb/utils.rb
Instance Method Summary collapse
Instance Method Details
#tostrings ⇒ Object
8 9 10 |
# File 'lib/gbifrb/utils.rb', line 8 def tostrings Hash[self.map{|(k,v)| [k.to_s,v]}] end |
#tosymbols ⇒ Object
14 15 16 |
# File 'lib/gbifrb/utils.rb', line 14 def tosymbols Hash[self.map{|(k,v)| [k.to_sym,v]}] end |