lib/y_petri/transition/A.rb in y_petri-2.4.3 vs lib/y_petri/transition/A.rb in y_petri-2.4.4
- old
+ new
@@ -1,9 +1,15 @@
# encoding: utf-8
# Mixin for the transitions with assignment action.
#
module YPetri::Transition::Type_A
+ # For assignment transitions, "function" refers to their action closure.
+ #
+ def function
+ action_closure
+ end
+
# Transition's action (before validation).
#
def action
action_closure.( *domain_marking )
end