module Tictail::Helper

Public Instance Methods

convert_hash_keys(value) click to toggle source
# File lib/tictail/helper.rb, line 3
def convert_hash_keys(value)
  case value
    when Array
      value.map { |v| convert_hash_keys(v) }
    when Hash
      Hash[value.map { |k, v| [k.to_s, convert_hash_keys(v)] }]
    else
      value
  end
end