class Wongi::Engine::ProductionNode
Attributes
compilation_context[RW]
tracer[RW]
Public Class Methods
new(parent, actions)
click to toggle source
Calls superclass method
# File lib/wongi-engine/beta/production_node.rb, line 9 def initialize parent, actions super(parent) @actions = actions.each { |action| action.production = self } end
Public Instance Methods
beta_activate(token)
click to toggle source
Calls superclass method
Wongi::Engine::BetaMemory#beta_activate
# File lib/wongi-engine/beta/production_node.rb, line 14 def beta_activate token return unless super @actions.each do |action| action.execute token if action.respond_to? :execute end end
beta_deactivate(token)
click to toggle source
Calls superclass method
Wongi::Engine::BetaMemory#beta_deactivate
# File lib/wongi-engine/beta/production_node.rb, line 21 def beta_deactivate token return unless super @actions.each do |action| action.deexecute token if action.respond_to? :deexecute end end