Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#tostringsObject



28
29
30
# File 'lib/bananomia/utils.rb', line 28

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

#tosymbolsObject



34
35
36
# File 'lib/bananomia/utils.rb', line 34

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