Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/gbifrb/utils.rb,
lib/gbifrb/utils.rb

Instance Method Summary collapse

Instance Method Details

#tostringsObject



8
9
10
# File 'lib/gbifrb/utils.rb', line 8

def tostrings
	Hash[self.map{|(k,v)| [k.to_s,v]}]
end

#tosymbolsObject



14
15
16
# File 'lib/gbifrb/utils.rb', line 14

def tosymbols
	Hash[self.map{|(k,v)| [k.to_sym,v]}]
end