Array
# File lib/rspec/core/hooks.rb, line 73 def for(example, initial_procsy=nil) self.class.new(select {|hook| hook.options_apply?(example)}). with(example, initial_procsy) end
# File lib/rspec/core/hooks.rb, line 84 def run inject(@initial_procsy) do |procsy, around_hook| Example.procsy(procsy.metadata) do @example.instance_eval_with_args(procsy, &around_hook.block) end end.call end
# File lib/rspec/core/hooks.rb, line 78 def with(example, initial_procsy) @example = example @initial_procsy = initial_procsy self end
[Validate]
Generated with the Darkfish Rdoc Generator 2.