Methods

Hashie::Extensions::Coercion

Public Class Methods

included(base) click to toggle source
# File lib/hashie/extensions/coercion.rb, line 4
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', :[]=
  base.send :alias_method, :[]=, :'set_value_with_coercion'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.