lib/hashie/extensions/mash/keep_original_keys.rb
def convert_key(key)
          if regular_key?(key)
            key
          elsif (converted_key = __convert(key)) && regular_key?(converted_key)
            converted_key
          else
            key
          end
        end
# Converts the key when necessary to access the correct Mash key.
#
# @param [Object, String, Symbol] key the key to access.
# @return [Object] the value assigned to the key.
Converts the key when necessary to access the correct Mash key.
Converts the key when necessary to access the correct Mash key .
def convert_key(key)
          if regular_key?(key)
            key
          elsif (converted_key = __convert(key)) && regular_key?(converted_key)
            converted_key
          else
            key
          end
        end
def convert_key ( key ) if regular_key? ( key ) key elsif ( converted_key = __convert ( key ) ) && regular_key? ( converted_key ) converted_key else key end end
Converts the key when necessary to access the correct Mash key.
Converts the key when necessary to access the correct Mash key .
the value assigned to the key.
the value assigned to the key .
Object
key
key the key to access.
key the key to access .