Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/google-ft.rb
Overview
Quick and dirty method to symbolize keys of a hash.
Instance Method Summary collapse
Instance Method Details
#symbolize ⇒ Object
10 11 12 |
# File 'lib/google-ft.rb', line 10 def symbolize self.inject({}){|item,(k,v)| item[k.to_sym] = v; item} end |