Class: Steep::AST::MethodType::Params::Rest

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

#typeObject (readonly)

Returns the value of attribute type.



43
44
45
# File 'lib/steep/ast/method_type.rb', line 43

def type
  @type
end