class Flor::Pro::Cond
Public Instance Methods
receive_non_att()
click to toggle source
# File lib/flor/pcore/cond.rb, line 63 def receive_non_att return execute_child(0) if @message['point'] == 'execute' return wrap_reply if @node['found'] tf2 = tree[1][@fcid + 2] if Flor.true?(payload['ret']) @node['found'] = true execute_child(@fcid + 1) elsif tf2 && tf2[0, 2] == [ 'else', [] ] @node['found'] = true execute_child(@fcid + 3) else execute_child(@fcid + 2) end end
Protected Instance Methods
execute_child(i)
click to toggle source
Calls superclass method
Flor::Procedure#execute_child
# File lib/flor/pcore/cond.rb, line 83 def execute_child(i) payload['ret'] = node_payload_ret unless tree[1][i] super(i) end