Sha256: 94cdea60f1f38f7609444e08861242d45eace38cd563b1875a45ee604390e9dc
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
# encoding: utf-8 class YPetri::Simulation # Transition collection for YPetri::Simulation. # class Transitions < Nodes require_relative 'transitions/types' ★ Types # ★ means include # 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 ? TransitionPS().new( t, name: t.name ) : TransitionTS().new( t ) end end # class Transitions end # class YPetri::Simulation::Transitions
Version data entries
7 entries across 7 versions & 1 rubygems