module Hashie::Extensions::Dash::Coercion::ClassMethods
Public Instance Methods
property(property_name, options = {})
click to toggle source
Defines a property on the Dash
. Options are the standard Hashie::Dash#property
options plus:
-
:coerce
- The class into which you want the property coerced.
Calls superclass method
# File lib/hashie/extensions/dash/coercion.rb, line 17 def property(property_name, options = {}) super coerce_key property_name, options[:coerce] if options[:coerce] end