class Cat
  include ActiveModel::Attributes
  
  attribute :name, :string
end
 
Cat.attribute_types
# => {"name"=>#<ActiveModel::Type::String:0x00007eef50325960 @false="f", @limit=nil, @precision=nil, @scale=nil, @true="t">}
 
Cat.type_for_attribute(:name)
# => #<ActiveModel::Type::String:0x000075695a146f48 @false="f", @limit=nil, @precision=nil, @scale=nil, @true="t">
 
Cat.type_for_attribute(:name).type
=> :string