Module: Gamefic::Tester
- Included in:
- Plot
- Defined in:
- lib/gamefic/tester.rb
Instance Method Summary collapse
Instance Method Details
#on_test(name = :me, &block) ⇒ Object
7 8 9 |
# File 'lib/gamefic/tester.rb', line 7 def on_test name = :me, &block test_procs[name] = block end |
#run_test(name, actor) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/gamefic/tester.rb', line 10 def run_test name, actor queue = [] stage actor, queue, &test_procs[name] actor.queue.push *queue actor[:test_queue_length] = queue.length actor[:test_queue_scene] = actor.scene end |
#test_procs ⇒ Object
4 5 6 |
# File 'lib/gamefic/tester.rb', line 4 def test_procs @test_procs ||= Hash.new end |