Class: Steep::AST::Signature::Members::Attr
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Members::Attr
- Defined in:
- lib/steep/ast/signature/members.rb
Instance Attribute Summary collapse
-
#ivar ⇒ Object
readonly
Returns the value of attribute ivar.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#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
- #accessor? ⇒ Boolean
-
#initialize(location:, kind:, name:, ivar:, type:) ⇒ Attr
constructor
A new instance of Attr.
- #reader? ⇒ Boolean
Constructor Details
#initialize(location:, kind:, name:, ivar:, type:) ⇒ Attr
Returns a new instance of Attr.
84 85 86 87 88 89 90 |
# File 'lib/steep/ast/signature/members.rb', line 84 def initialize(location:, kind:, name:, ivar:, type:) @location = location @kind = kind @name = name @ivar = ivar @type = type end |
Instance Attribute Details
#ivar ⇒ Object (readonly)
Returns the value of attribute ivar.
81 82 83 |
# File 'lib/steep/ast/signature/members.rb', line 81 def ivar @ivar end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
79 80 81 |
# File 'lib/steep/ast/signature/members.rb', line 79 def kind @kind end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
78 79 80 |
# File 'lib/steep/ast/signature/members.rb', line 78 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
80 81 82 |
# File 'lib/steep/ast/signature/members.rb', line 80 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
82 83 84 |
# File 'lib/steep/ast/signature/members.rb', line 82 def type @type end |
Instance Method Details
#accessor? ⇒ Boolean
96 97 98 |
# File 'lib/steep/ast/signature/members.rb', line 96 def accessor? kind == :accessor end |
#reader? ⇒ Boolean
92 93 94 |
# File 'lib/steep/ast/signature/members.rb', line 92 def reader? kind == :reader end |