module

ActiveModel::Attributes

Instance methods

__read_attribute(key : String) : ActiveModel::Value
attributes

Macros

__plant_attribute_bases

Base dispatchers, planted into the class on first attribute use (also planted by Model/API's included hook).

attribute(name, type = nil, default = nil)

type: :integer/:string/:boolean/:float; nil = untyped (identity cast — mirrors plain attr_accessor semantics).