Class: Hash
Instance Method Summary collapse
Instance Method Details
#symbolize ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/bauk/utils/symbolize.rb', line 9 def symbolize reduce({}) do |memo, (k, v)| memo.tap do |m| m[k.to_sym] = v.respond_to?(:symbolize) ? v.symbolize() : v end end end |