Sha256: 316a667007f65c22f03632d48d139a9081465b9c8b16f806075379900498fdac

Contents?: true

Size: 390 Bytes

Versions: 15

Compression:

Stored size: 390 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/core'

# eventメソッドはハンドラ内でのみ使用できるものなのでその外で使用したら例外がraiseされる。
# loadでもbindでも途中で失敗し、Tengineコアのプロセスは終了する

driver :driver61 do
  event # SyntaxErrorではなく、Tengine::Core::DslErrorがraiseされる

  on:event61 do
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tengine_core-1.2.2 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-1.2.1 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-1.2.0 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-1.1.0 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.39 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.38 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.37 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.36 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.35 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.34 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.33 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.32 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.31 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.30 failure_examples/uc61_event_outside_of_handler.rb
tengine_core-0.5.28 failure_examples/uc61_event_outside_of_handler.rb