Sha256: e4892aab3fac6249fbca408b5ec64d11a5ea91e42366a435d12d7c2bfe1524ce

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

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

driver :driver08 do

  # イベントAとイベントBが発生したら処理を実行する
  on :event08_a & :event08_b do
    puts "handler08"
  end

  # イベントAとイベントBが発生したら処理を実行する
  on :event08_c do
    puts "clear session"
    session.clear!
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tengine_core-1.2.2 examples/uc08_if_both_a_and_b_occurs.rb
tengine_core-1.2.1 examples/uc08_if_both_a_and_b_occurs.rb
tengine_core-1.2.0 examples/uc08_if_both_a_and_b_occurs.rb
tengine_core-1.1.0 examples/uc08_if_both_a_and_b_occurs.rb