module Cucumber::LanguageSupport::LanguageMethods
def invoke(hook, location, scenario, exception_fails_scenario)
def invoke(hook, location, scenario, exception_fails_scenario) begin hook.invoke(location, scenario) rescue Exception => exception if exception_fails_scenario scenario.fail!(exception) else raise end end end