Class: Machine::ProcessStatus
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Machine::ProcessStatus
- Includes:
- Helpers, Sys
- Defined in:
- lib/machine/process_status.rb
Instance Attribute Summary collapse
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(pid) ⇒ ProcessStatus
constructor
A new instance of ProcessStatus.
Methods included from Helpers
Constructor Details
#initialize(pid) ⇒ ProcessStatus
Returns a new instance of ProcessStatus.
21 22 23 |
# File 'lib/machine/process_status.rb', line 21 def initialize(pid) super ProcTable.ps(@pid = pid) || NullObject.new end |
Instance Attribute Details
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
19 20 21 |
# File 'lib/machine/process_status.rb', line 19 def pid @pid end |