module Hashie::Extensions::Mash::KeepOriginalKeys

def __convert(key)

Returns:
  • (Object, String, Symbol) - the converted key.

Parameters:
  • key (Object, String, Symbol) -- the key to convert.
def __convert(key)
  case key
  when Symbol then key.to_s
  when String then key.to_sym
  else key
  end
end