module Hashie::Extensions::Coercion
Constants
- ABSTRACT_CORE_TYPES
- CORE_TYPES
Public Class Methods
included(base)
click to toggle source
# File lib/hashie/extensions/coercion.rb, line 24 def self.included(base) base.send :include, InstanceMethods base.extend ClassMethods # NOTE: we wanna make sure we first define set_value_with_coercion before extending base.send :alias_method, :set_value_without_coercion, :[]= unless base.method_defined?(:set_value_without_coercion) base.send :alias_method, :[]=, :set_value_with_coercion end