Sha256: 78b76f0202042eb766b49c43a9b827bf17c1e481d86571df1b01244f80f6a062

Contents?: true

Size: 305 Bytes

Versions: 15

Compression:

Stored size: 305 Bytes

Contents

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

class Driver02
  include Tengine::Core::Driveable

  # イベントが発生したら新たなイベントを発火する
  on:event02_1
  def foo
    puts "handler02_1"
    fire(:event02_2)
  end

  on:event02_2
  def bar
    puts "handler02_2"
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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