Method: RuboCop::Cop::RSpec::InstanceVariable#custom_matcher?

Defined in:
lib/rubocop/cop/rspec/instance_variable.rb

#custom_matcher?(node) ⇒ Object


60
61
62
63
64
65
# File 'lib/rubocop/cop/rspec/instance_variable.rb', line 60

def_node_matcher :custom_matcher?, <<~PATTERN
  (block {
    (send nil? :matcher sym)
    (send (const (const nil? :RSpec) :Matchers) :define sym)
  } ...)
PATTERN