Class: Steep::AST::Signature::Alias
- Inherits:
-
Object
- Object
- Steep::AST::Signature::Alias
- Defined in:
- lib/steep/ast/signature/alias.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(location:, name:, params:, type:) ⇒ Alias
constructor
A new instance of Alias.
Constructor Details
#initialize(location:, name:, params:, type:) ⇒ Alias
Returns a new instance of Alias.
10 11 12 13 14 15 |
# File 'lib/steep/ast/signature/alias.rb', line 10 def initialize(location:, name:, params:, type:) @location = location @name = name @params = params @type = type end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/steep/ast/signature/alias.rb', line 5 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/steep/ast/signature/alias.rb', line 6 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/steep/ast/signature/alias.rb', line 7 def params @params end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/steep/ast/signature/alias.rb', line 8 def type @type end |