Class: Steep::AST::Signature::Const
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Const
- Defined in:
- lib/steep/ast/signature/const.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:) ⇒ Const
constructor
A new instance of Const.
Constructor Details
#initialize(location:, name:, type:) ⇒ Const
Returns a new instance of Const.
9 10 11 12 13 |
# File 'lib/steep/ast/signature/const.rb', line 9 def initialize(location:, name:, type:) @location = location @name = name @type = type end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/steep/ast/signature/const.rb', line 5 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/steep/ast/signature/const.rb', line 6 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/steep/ast/signature/const.rb', line 7 def type @type end |