class Async::Container::Threaded::Child::Status
A pseudo exit-status wrapper.
def as_json(...)
Convert the status to a hash, suitable for serialization.
def as_json(...) if @error @error.inspect else true end end
def initialize(error = nil)
Initialise the status.
def initialize(error = nil) @error = error end
def success?
Whether the status represents a successful outcome.
def success? @error.nil? end
def to_s
def to_s "\#<#{self.class} #{success? ? "success" : "failure"}>" end