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



37
38
39
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 37

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



37
38
39
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 37

def name
  @name
end