Class: Rails::On::Sorbet::CurrentAttributes::Attribute
- Inherits:
-
Object
- Object
- Rails::On::Sorbet::CurrentAttributes::Attribute
- Defined in:
- lib/rails/on/sorbet/current_attributes.rb
Overview
Holds the data of a single attribute definition
Instance Attribute Summary collapse
-
#doc ⇒ Object
: String?.
-
#name ⇒ Object
: Symbol.
-
#type ⇒ Object
: Object.
Instance Method Summary collapse
-
#initialize(name, type, doc) ⇒ Attribute
constructor
: (Symbol name, Object type, String? doc) -> void.
Constructor Details
#initialize(name, type, doc) ⇒ Attribute
: (Symbol name, Object type, String? doc) -> void
21 22 23 24 25 |
# File 'lib/rails/on/sorbet/current_attributes.rb', line 21 def initialize(name, type, doc) @name = name @type = type @doc = doc end |
Instance Attribute Details
#doc ⇒ Object
: String?
18 19 20 |
# File 'lib/rails/on/sorbet/current_attributes.rb', line 18 def doc @doc end |
#name ⇒ Object
: Symbol
12 13 14 |
# File 'lib/rails/on/sorbet/current_attributes.rb', line 12 def name @name end |
#type ⇒ Object
: Object
15 16 17 |
# File 'lib/rails/on/sorbet/current_attributes.rb', line 15 def type @type end |