class Cucumber::Runtime::AfterHooks

def after_hooks

def after_hooks
  @hooks.map do |hook|
    action = ->(result) { hook.invoke('After', @scenario.with_result(result)) }
    hook_step = Hooks.after_hook(@id_generator.new_id, hook.location, &action)
    @event_bus.hook_test_step_created(hook_step, hook)
    hook_step
  end
end