Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#tostringsObject



27
28
29
# File 'lib/serrano/utils.rb', line 27

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

#tosymbolsObject



33
34
35
# File 'lib/serrano/utils.rb', line 33

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