Class: RuboCop::Cop::Sorbet::EnforceSignatures::Param
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::Sorbet::EnforceSignatures::Param
- 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
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
37 38 39 |
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 37 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
37 38 39 |
# File 'lib/rubocop/cop/sorbet/signatures/enforce_signatures.rb', line 37 def name @name end |