class RSpec::Matchers::BuiltIn::YieldControl

def matches?(block)

Other tags:
    Private: -
def matches?(block)
  @probe = YieldProbe.probe(block)
  return false unless @probe.has_block?
  expected_count_matches?(@probe.num_yields)
end