class Flor::Pro::Length
Public Instance Methods
Source
# File lib/flor/pcore/length.rb, line 24 def pre_execute @node['ret'] = receive_payload_ret unatt_unkeyed_children end
Source
# File lib/flor/pcore/length.rb, line 37 def receive_last r = @node['ret'] || fail(Flor::FlorError.new('found no argument that has a length', self)) wrap_reply('ret' => r) end
Source
# File lib/flor/pcore/length.rb, line 31 def receive_payload_ret r = payload['ret'] r.respond_to?(:length) ? r.length : false end