Class: Steep::AST::Signature::Members::Ivar
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Members::Ivar
- Defined in:
- lib/steep/ast/signature/members.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(location:, name:, type:) ⇒ Ivar
constructor
A new instance of Ivar.
Constructor Details
#initialize(location:, name:, type:) ⇒ Ivar
Returns a new instance of Ivar.
70 71 72 73 74 |
# File 'lib/steep/ast/signature/members.rb', line 70 def initialize(location:, name:, type:) @location = location @name = name @type = type end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
66 67 68 |
# File 'lib/steep/ast/signature/members.rb', line 66 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
67 68 69 |
# File 'lib/steep/ast/signature/members.rb', line 67 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
68 69 70 |
# File 'lib/steep/ast/signature/members.rb', line 68 def type @type end |