Class: Rails::On::Sorbet::CurrentAttributes::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/on/sorbet/current_attributes.rb

Overview

Holds the data of a single attribute definition

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docObject

: String?



18
19
20
# File 'lib/rails/on/sorbet/current_attributes.rb', line 18

def doc
  @doc
end

#nameObject

: Symbol



12
13
14
# File 'lib/rails/on/sorbet/current_attributes.rb', line 12

def name
  @name
end

#typeObject

: Object



15
16
17
# File 'lib/rails/on/sorbet/current_attributes.rb', line 15

def type
  @type
end