Module: Hashie::Extensions::Dash::Coercion

Defined in:
lib/hashie/extensions/dash/coercion.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Extends a Dash with the ability to define coercion for properties.



7
8
9
10
# File 'lib/hashie/extensions/dash/coercion.rb', line 7

def self.included(base)
  base.send :include, Hashie::Extensions::Coercion
  base.extend ClassMethods
end