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.1.26 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.25 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.24 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.22 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.21 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.20 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.18 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.17 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.16 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.12 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.11 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.10 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.9 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.7 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.6 lib/y_petri/transition/usable_without_world.rb