class Hashie::Trash

def self.property(property_name, options = {})

* :from - Specify the original key name that will be write only.
returned before a value is set on the property in a new Dash.
* :default - Specify a default value for this property, to be

Defines a property on the Trash. Options are as follows:
def self.property(property_name, options = {})
  super
  if options[:from]
    translations << options[:from].to_sym
    class_eval <<-RUBY
      def #{options[:from]}=(val)
        self[:#{property_name}] = val
      end
    RUBY
  end
end