lib/y_petri/simulation/transitions.rb in y_petri-2.3.12 vs lib/y_petri/simulation/transitions.rb in y_petri-2.4.0

- old
+ new

@@ -11,9 +11,11 @@ # 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 ) + super t.name ? + TransitionPS().new( t, name: t.name ) : + TransitionTS().new( t ) end end # class Transitions end # class YPetri::Simulation::Transitions