Sha256: 456d2d0db22e27cea8cc28ffe649dd6e23d20fcd94137cc437f3516d308d9d0e

Contents?: true

Size: 355 Bytes

Versions: 55

Compression:

Stored size: 355 Bytes

Contents

# encoding: utf-8

# Overrride of World::Dependency to enable Transition instances not belonging
# to any World instance.
# 
module YPetri::Transition::UsableWithoutWorld
  def place id
    super rescue Place().instance( id )
  end

  def transition id
    super rescue Transition().instance( id )
  end
end # class YPetri::Transition::UsableWithoutWorld

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
y_petri-2.4.9 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.8 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.6 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.4 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.3 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.2 lib/y_petri/transition/usable_without_world.rb
y_petri-2.4.0 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.12 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.11 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.10 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.9 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.8 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.6 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.5 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.4 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.3 lib/y_petri/transition/usable_without_world.rb
y_petri-2.3.2 lib/y_petri/transition/usable_without_world.rb
y_petri-2.2.4 lib/y_petri/transition/usable_without_world.rb
y_petri-2.2.3 lib/y_petri/transition/usable_without_world.rb
y_petri-2.2.2 lib/y_petri/transition/usable_without_world.rb