class Object

Public Instance Methods

transition(id) click to toggle source

Returns the net's transition identified by the argument.

Calls superclass method
# File lib/y_petri/net/node_access.rb, line 34
def transition id
  ( super rescue Transition().instance( id ) ).tap do |t|
    transitions.include? t or fail TypeError, "No transition #{id} in the net!"
  end