Class: Array
- Defined in:
- lib/emissary/core_ext/blank.rb,
lib/emissary/core_ext/symbolize.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#symbolize ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/emissary/core_ext/symbolize.rb', line 2 def symbolize collect do |value| case value when Hash, Array value.symbolize else value end end end |
#symbolize! ⇒ Object
13 14 15 |
# File 'lib/emissary/core_ext/symbolize.rb', line 13 def symbolize! self.replace(self.symbolize) end |