# File lib/rspec/matchers/built_in/yield.rb, line 20 def to_proc @used = true probe = self Proc.new do |*args| probe.num_yields += 1 probe.yielded_args << args end end