Class: RuboCop::Cop::Sorbet::EnforceSignatures::Param

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb

Overview

Represents a method parameter with its name and AST node kind. :kwoptarg, :kwrestarg, :forward_arg, :blockarg).

Instance Attribute Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



40
41
42
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 40

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



40
41
42
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 40

def name
  @name
end