class RSpec::Core::Hooks::AfterHook

def run_in(example)

def run_in(example)
  if example
    begin
      example.instance_eval(&self)
    rescue Exception => e
      if example.respond_to?(:example)
        example.example.set_exception(e)
      end
    end
  else
    call
  end
end