lib/lean-attributes/attributes/class_methods.rb
def add_attribute_methods(attribute)
        class_eval(attribute.coercion_method, __FILE__, __LINE__ + 1)
        class_eval(attribute.getter_method,   __FILE__, __LINE__ + 1)
        class_eval(attribute.setter_method,   __FILE__, __LINE__ + 1)
      end
# Injects the generated coercion, getter, and setter instance methods from
# the provided attribute into the class.
#
# @param [Attribute] attribute
#
# @since 0.4.0
# @api private
Injects the generated coercion, getter, and setter instance methods from
the provided attribute into the class.
Injects the generated coercion getter and setter instance methods from the provided attribute into the class .
def add_attribute_methods(attribute)
        class_eval(attribute.coercion_method, __FILE__, __LINE__ + 1)
        class_eval(attribute.getter_method,   __FILE__, __LINE__ + 1)
        class_eval(attribute.setter_method,   __FILE__, __LINE__ + 1)
      end
def add_attribute_methods ( attribute ) class_eval ( attribute . coercion_method , __FILE__ , __LINE__ + 1 ) class_eval ( attribute . getter_method , __FILE__ , __LINE__ + 1 ) class_eval ( attribute . setter_method , __FILE__ , __LINE__ + 1 ) end
Injects the generated coercion, getter, and setter instance methods from
the provided attribute into the class.
Injects the generated coercion getter and setter instance methods from the provided attribute into the class .
attribute
None
since
None
api
None