Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/google-ft.rb

Overview

Quick and dirty method to symbolize keys of a hash.

Instance Method Summary collapse

Instance Method Details

#symbolizeObject



10
11
12
# File 'lib/google-ft.rb', line 10

def symbolize
  self.inject({}){|item,(k,v)| item[k.to_sym] = v; item}
end