Sha256: de727a19d94e52fac98eca78cf399fe170e0a7f8ae311ed7b24d3f0cffe05441

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

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

# driverメソッドによるドライバ定義で定数を使用する例。

STATIC1 = "outside of driver"

driver :driver33 do

  STATIC2 = "outside of handler"
  puts "#{__FILE__}##{__LINE__}"
  puts STATIC1 # => outside of driver

  on:event33 do
    puts "#{__FILE__}##{__LINE__}"
    puts STATIC1 # => outside of driver
    puts STATIC2 # => outside of handler
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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