spec/hashie/extensions/indifferent_access_spec.rb
# Override writer to maintain alias of the given key
Override writer to maintain alias of the given key
Override writer to maintain alias of the given key
def indifferent_writer(key, value)
          indifferent_value = indifferent_value(value)
          regular_writer convert_key(key),          indifferent_value
          regular_writer convert_key(ALIASES[key]), indifferent_value
        end
def indifferent_writer ( key , value ) indifferent_value = indifferent_value ( value ) regular_writer convert_key ( key ) , indifferent_value regular_writer convert_key ( ALIASES [ key ] ) , indifferent_value end
Override writer to maintain alias of the given key
Override writer to maintain alias of the given key
key
value