Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#tostringsObject



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

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

#tosymbolsObject



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

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