class Flor::Pro::DoubleQuoteString
Public Instance Methods
execute_child(index=0, sub=nil, h=nil)
click to toggle source
Calls superclass method
Flor::Procedure#execute_child
# File lib/flor/pcore/_dqs.rb, line 12 def execute_child(index=0, sub=nil, h=nil) payload['ret'] = node_payload_ret # always pass the noe_payload_ret to children super end
pre_execute()
click to toggle source
# File lib/flor/pcore/_dqs.rb, line 7 def pre_execute @node['rets'] = [] end
receive_last()
click to toggle source
# File lib/flor/pcore/_dqs.rb, line 20 def receive_last wrap('ret' => @node['rets'].collect { |e| to_string(e) }.join) end
Protected Instance Methods
to_string(result)
click to toggle source
# File lib/flor/pcore/_dqs.rb, line 27 def to_string(result) case result when String then result when nil then '' else JSON.dump(result) end end