module RSpec::Core::Hooks

def run_hook(hook, scope, example=nil)

example. If no example is provided, just calls the hook directly.
Runs all of the blocks stored with the hook in the context of the
def run_hook(hook, scope, example=nil)
  hooks[hook][scope].run_all(example)
end