Class: Steep::AST::MethodType::Params::Required
- 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) ⇒ Required
constructor
A new instance of Required.
Methods inherited from Base
Constructor Details
#initialize(location:, type:, next_params: nil) ⇒ Required
Returns a new instance of Required.
24 25 26 27 28 |
# File 'lib/steep/ast/method_type.rb', line 24 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.
22 23 24 |
# File 'lib/steep/ast/method_type.rb', line 22 def next_params @next_params end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
21 22 23 |
# File 'lib/steep/ast/method_type.rb', line 21 def type @type end |