Sha256: efc18117694b0ce0b034532766e0e0429cf56f840bfda4f7edd76a0644188ec3
Contents?: true
Size: 616 Bytes
Versions: 55
Compression:
Stored size: 616 Bytes
Contents
# encoding: utf-8 # Cocking mechanics of a transition. A transition has to be cocked, before # it can succesfuly +#fire+. (+#fire!+ method disregards cocking.) # module YPetri::Transition::Cocking # Is the transition cocked? # def cocked? @cocked end # Negation of +#cocked?+ method. # def uncocked? not cocked? end # Cocks teh transition -- allows +#fire+ to succeed. # def cock @cocked = true end alias :cock! :cock # Sets the transition state to uncocked. # def uncock @cocked = false end alias :uncock! :uncock end # class YPetri::Transition::Cocking
Version data entries
55 entries across 55 versions & 1 rubygems