Module Hashie::Extensions::Dash::PropertyTranslation::ClassMethods
In: lib/hashie/extensions/dash/property_translation.rb

Methods

Attributes

transforms  [R] 
translations_hash  [R] 

Public Instance methods

Ensures that any inheriting classes maintain their translations.

Defines a property on the Trash. Options are as follows:

  • :default - Specify a default value for this property, to be

returned before a value is set on the property in a new Dash.

  • :from - Specify the original key name that will be write only.
  • :with - Specify a lambda to be used to convert value.
  • :transform_with - Specify a lambda to be used to convert value

without using the :from option. It transform the property itself.

[Validate]