# File lib/rspec/core/hooks.rb, line 55deffor(example_or_group)
self.class.new(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 65defruneach {|h|h.run(@example) } unlessempty?end
with(example)click to toggle source
# File lib/rspec/core/hooks.rb, line 60defwith(example)
@example = exampleselfend