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.2.1 lib/y_petri/transition/usable_without_world.rb
y_petri-2.2.0 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.51 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.50 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.49 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.48 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.47 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.46 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.45 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.44 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.42 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.40 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.39 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.37 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.36 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.35 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.34 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.33 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.31 lib/y_petri/transition/usable_without_world.rb
y_petri-2.1.30 lib/y_petri/transition/usable_without_world.rb