Class: ProcessExecuter::Status
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ProcessExecuter::Status
- Extended by:
- Forwardable
- Defined in:
- lib/process_executer/status.rb
Overview
A simple delegator for Process::Status that adds a timeout?
attribute
Instance Attribute Summary collapse
-
#timeout? ⇒ Boolean
readonly
True if the process timed out and was sent the SIGKILL signal.
Instance Method Summary collapse
-
#initialize(status, timeout) ⇒ Status
constructor
Create a new Status object from a Process::Status and timeout flag.
Constructor Details
#initialize(status, timeout) ⇒ Status
Create a new Status object from a Process::Status and timeout flag
26 27 28 29 |
# File 'lib/process_executer/status.rb', line 26 def initialize(status, timeout) super(status) @timeout = timeout end |
Instance Attribute Details
#timeout? ⇒ Boolean (readonly)
True if the process timed out and was sent the SIGKILL signal
43 |
# File 'lib/process_executer/status.rb', line 43 def timeout? = @timeout |