Method: ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::AttributeMethod#attr_name

Defined in:
activemodel/lib/active_model/attribute_methods.rb

#attr_nameObject

Returns the value of attribute attr_name

Returns:

  • (Object)

    the current value of attr_name



474
475
476
# File 'activemodel/lib/active_model/attribute_methods.rb', line 474

def attr_name
  @attr_name
end