Sha256: b0d2113ac5c6a420071b9fb2ebf8b18074626efc6d0e89071bc365c6e6f28019
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
# -*- coding: utf-8 -*- require 'tengine/core' # driverメソッドによるドライバ定義でクラス変数を使用する例。 @@cvar1 = "outside of driver" driver :driver32 do @@cvar2 = "outside of handler" puts "#{__FILE__}##{__LINE__}" puts @@cvar1.inspect # => outside of driver on:event32 do puts "#{__FILE__}##{__LINE__}" puts @@cvar1.inspect # => outside of driver puts @@cvar2.inspect # => outside of handler end end
Version data entries
4 entries across 4 versions & 1 rubygems