Class: Steep::AST::MethodType::Params::Required

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/ast/method_type.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#update_location

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_paramsObject (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

#typeObject (readonly)

Returns the value of attribute type.



21
22
23
# File 'lib/steep/ast/method_type.rb', line 21

def type
  @type
end