lib/hashie/extensions/mash/keep_original_keys.rb
def __convert(key)
          case key
          when Symbol then key.to_s
          when String then key.to_sym
          else key
          end
        end
# Converts symbol/string keys to their alternative formats, but leaves
# other keys alone.
#
# @param [Object, String, Symbol] key the key to convert.
# @return [Object, String, Symbol] the converted key.
Converts symbol/string keys to their alternative formats, but leaves
other keys alone.
Converts symbol / string keys to their alternative formats but leaves other keys alone .
def __convert(key)
          case key
          when Symbol then key.to_s
          when String then key.to_sym
          else key
          end
        end
def __convert ( key ) case key when Symbol then key . to_s when String then key . to_sym else key end end
Converts symbol/string keys to their alternative formats, but leaves
other keys alone.
Converts symbol / string keys to their alternative formats but leaves other keys alone .
the converted key.
the converted key .
Object, String, Symbol
key
key the key to convert.
key the key to convert .