@private
# File lib/rspec/core/hooks.rb, line 398 def for(example_or_group) self.class. new(hooks.select {|hook| hook.options_apply?(example_or_group)}). with(example_or_group) end
# File lib/rspec/core/hooks.rb, line 409 def run hooks.each {|h| h.run(@example)} end
# File lib/rspec/core/hooks.rb, line 404 def with(example) @example = example self end