class RuboCop::Cop::Sorbet::SignatureCop

Abstract cop specific to Sorbet signatures

You can subclass it to use the `on_signature` trigger and the `signature?` node matcher.

Public Instance Methods

on_block(node) click to toggle source
# File lib/rubocop/cop/sorbet/signatures/signature_cop.rb, line 18
def on_block(node)
  on_signature(node) if signature?(node)
end
on_signature(_) click to toggle source
# File lib/rubocop/cop/sorbet/signatures/signature_cop.rb, line 22
def on_signature(_)
  # To be defined in subclasses
end