Class: Flor::Macro
- Defined in:
- lib/flor/core/procedure.rb
Overview
Not really a procedure, more like a macro, rewrites its tree and returns a new message to queue (with a rewritten tree).
Direct Known Subclasses
Defined Under Namespace
Constant Summary
Constants inherited from Procedure
Procedure::RVARS, Procedure::TRUE_ATTS
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#rewrite ⇒ Object
Called by the executor.
Methods inherited from Procedure
[], core?, #debug_msg, #debug_tree, #end, #flank, #heap, inherited, make, names, #pre_execute, #prepare_on_receive_last, #trigger_on_error
Methods inherited from Node
#child_id, #cnodes, #cnodes_any?, #cnodes_empty?, #deref, #descendant_of?, #domain, #exid, #fei, #from, #h, #initialize, #lookup_tree, #lookup_value, #message_or_node_payload, #nid, #node_closed?, #node_ended?, #node_open?, #node_payload, #node_payload_ret, #node_status, #node_status_flavour, #on_error_parent, #parent, #payload, #payload_ret, #point, #reheap, #to_procedure_node, #tree
Constructor Details
This class inherits a constructor from Flor::Node
Instance Method Details
#rewrite ⇒ Object
Called by the executor.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/flor/core/procedure.rb', line 1034 def rewrite t = rewrite_tree #puts Flor.tree_to_s(t, nid) m = @message.dup m['tree'] = t m['rewritten'] = tree m end |