Class: Steep::AST::MethodType::Params::RestKeyword

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:) ⇒ RestKeyword

Returns a new instance of RestKeyword.



82
83
84
85
# File 'lib/steep/ast/method_type.rb', line 82

def initialize(location:, type:)
  super(location: location)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



80
81
82
# File 'lib/steep/ast/method_type.rb', line 80

def type
  @type
end