Class: Steep::AST::MethodType::Params::Rest
- Defined in:
- lib/steep/ast/method_type.rb
Instance Attribute Summary collapse
-
#next_params ⇒ Object
readonly
Returns the value of attribute next_params.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(location:, type:, next_params: nil) ⇒ Rest
constructor
A new instance of Rest.
Methods inherited from Base
Constructor Details
#initialize(location:, type:, next_params: nil) ⇒ Rest
Returns a new instance of Rest.
46 47 48 49 50 |
# File 'lib/steep/ast/method_type.rb', line 46 def initialize(location:, type:, next_params: nil) super(location: location) @type = type @next_params = next_params end |
Instance Attribute Details
#next_params ⇒ Object (readonly)
Returns the value of attribute next_params.
44 45 46 |
# File 'lib/steep/ast/method_type.rb', line 44 def next_params @next_params end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
43 44 45 |
# File 'lib/steep/ast/method_type.rb', line 43 def type @type end |