# File lib/rspec/core/hooks.rb, line 398deffor(example_or_group)
self.class.
new(hooks.select {|hook|hook.options_apply?(example_or_group)}).
with(example_or_group)
end
run()click to toggle source
# File lib/rspec/core/hooks.rb, line 409defrunhooks.each {|h|h.run(@example)}
end
with(example)click to toggle source
# File lib/rspec/core/hooks.rb, line 404defwith(example)
@example = exampleselfend