module Hashie::Extensions::Dash::PropertyTranslation::InstanceMethods

def []=(property, value)

Note: Only works on pre-existing properties.

Sets a value on the Dash in a Hash-like way.
def []=(property, value)
  if self.class.translation_exists? property
    send("#{property}=", value)
  elsif self.class.transformation_exists? property
    super property, self.class.transformed_property(property, value)
  elsif property_exists? property
    super
  end
end