Module: YPetri::Transition::UsableWithoutWorld

Defined in:
lib/y_petri/transition/usable_without_world.rb

Overview

Overrride of World::Dependency to enable Transition instances not belonging to any World instance.

Instance Method Summary collapse

Instance Method Details

#place(id) ⇒ Object



7
8
9
# File 'lib/y_petri/transition/usable_without_world.rb', line 7

def place id
  super rescue Place().instance( id )
end

#transition(id) ⇒ Object



11
12
13
# File 'lib/y_petri/transition/usable_without_world.rb', line 11

def transition id
  super rescue Transition().instance( id )
end