lib/pulse_meter/mixins/utils.rb
# Deeply capitalizes Array values or Hash keys
Deeply capitalizes Array values or Hash keys
Deeply capitalizes Array values or Hash keys
def camelize_keys(item)
        case item
        when Array
          item.map{|i| camelize_keys(i)}
        when Hash
          item.each_with_object({}) { |(k, v), h| h[camelize(k)] = camelize_keys(v)}
        else
          item
        end
      end
def camelize_keys ( item ) case item when Array item . map { | i | camelize_keys ( i ) } when Hash item . each_with_object ( { } ) { | ( k , v ) , h | h [ camelize ( k ) ] = camelize_keys ( v ) } else item end end
Deeply capitalizes Array values or Hash keys
Deeply capitalizes Array values or Hash keys
item
<not_specific>