Sha256: 2e1a45d046808424ef2904dfd272f82f943bce7aad0d1575fb8b7a43789bfa81

Contents?: true

Size: 368 Bytes

Versions: 15

Compression:

Stored size: 368 Bytes

Contents

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

class Uc62SessionInDriver
  include Tengine::Core::Driveable

  session.update(:foo => 100) # ドライバ登録時にそのセッションに キー:foo に対して 値100 を設定する。

  on:event62
  def event62
    value = session[:foo]
    value +=1
    session.update(:foo => value)
    puts value
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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