Class | OpenWFE::PrintExpression |
In: |
lib/openwfe/expressions/fe_misc.rb
|
Parent: | FlowExpression |
A debug/test expression (it‘s mostly used in the test suite used for the development of OpenWFEru). Outputs a message to the STDOUT (via the "puts" Ruby method).
<print>hello</print> _print "hello" _print do "in a block" end
Note that when expressing the process in Ruby, an underscore has to be placed in front of the expression name to avoid a collision with the Ruby ‘print’ function.
If there is an object bound in the application context under the name ‘__tracer’, this expression will append its message to this instance instead of emitting to the STDOUT. (this is how the OpenWFEru test suite uses this expression).