Class: Steep::AST::TypeParams
- Inherits:
-
Object
- Object
- Steep::AST::TypeParams
- Defined in:
- lib/steep/ast/type_params.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(location: nil, variables:) ⇒ TypeParams
constructor
A new instance of TypeParams.
Constructor Details
#initialize(location: nil, variables:) ⇒ TypeParams
Returns a new instance of TypeParams.
7 8 9 10 |
# File 'lib/steep/ast/type_params.rb', line 7 def initialize(location: nil, variables:) @location = location @variables = variables end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/steep/ast/type_params.rb', line 4 def location @location end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
5 6 7 |
# File 'lib/steep/ast/type_params.rb', line 5 def variables @variables end |