data Process::Status(code: Int?, signal: String?)

How a child process ended (Process::Child#wait): its exit code, or the signal that ended it.

<prelude>:6885

Methods

def code -> Int?

The exit code; nil when a signal ended the process.

<prelude>:6887

def signal -> String?

The name of the signal that ended the process, without the "SIG" prefix ("TERM"); nil when it exited.

<prelude>:6890

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

<prelude>:6893

def success? -> Bool

Whether the process exited with code 0.

<prelude>:6893

def with(*, code: Int? = …, signal: String? = …) -> Process::Status

A copy with the fields given replaced.

<prelude>:6893

def to_i -> Int

The exit code, or -1 when a signal ended the process (as Output#status).

<prelude>:6897