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



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

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

#tosymbolsObject



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

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