Sha256: c8d5beee8269a41c8a50301dea43f5b92508dca302f3108dd211068ff1cb9946
Contents?: true
Size: 578 Bytes
Versions: 5
Compression:
Stored size: 578 Bytes
Contents
#encoding: utf-8 # Transition collection for YPetri::Simulation. # class YPetri::Simulation class Transitions < Elements require_relative 'transitions/types' include Types # Pushes a transition to the collection. # def push transition t = begin net.transition( transition ) rescue NameError, TypeError return super transition( transition ) end super t.name ? Transition().new( t, name: t.name ) : Transition().new( t ) end end # class Transitions end # class YPetri::Simulation::Transitions
Version data entries
5 entries across 5 versions & 1 rubygems