Sha256: 09bed901a413928c3a0f5ecc8e25d2dd893c68a7e111398848c8d48f364e419b

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

class Globals < Lomic
  var :didiwin => 'No...'
end

rule 101 do |g| # g refers to globals
  event "game:start" do
    puts '[Example: simple.rb]'
    g.didiwin = 'Yes!'
    set_next "game:test1"
  end

  event "game:test1" do
    puts "Did I win? #{g.didiwin}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lomic-0.0.2 examples/simple.rb
lomic-0.0.1 examples/simple.rb