class RSpec::Core::Hooks::HookCollection
Public Instance Methods
for(example_or_group)
click to toggle source
# File lib/rspec/core/hooks.rb, line 74 def for(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 84 def run each {|h| h.run(@example) } unless empty? end
with(example)
click to toggle source
# File lib/rspec/core/hooks.rb, line 79 def with(example) @example = example self end