class Flor::Pro::Empty

Public Instance Methods

pre_execute() click to toggle source
# File lib/flor/pcore/empty.rb, line 42
def pre_execute

  unatt_unkeyed_children
end
receive_last() click to toggle source
# File lib/flor/pcore/empty.rb, line 47
def receive_last

  ret =
    case r = payload['ret']
    when Array, Hash, String then r.empty?
    when nil then true
    else
      fail Flor::FlorError.new(
        'argument is not an array, an object, a string or null', self)
    end

  wrap_reply('ret' => ret)
end