Class: Process::Status
Instance Attribute Summary collapse
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
- #exitstatus ⇒ Object
-
#initialize(status, pid) ⇒ Status
constructor
A new instance of Status.
- #inspect ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(status, pid) ⇒ Status
Returns a new instance of Status.
47 48 49 |
# File 'opal/stdlib/nodejs/kernel.rb', line 47 def initialize(status, pid) @status, @pid = status, pid end |
Instance Attribute Details
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
55 56 57 |
# File 'opal/stdlib/nodejs/kernel.rb', line 55 def pid @pid end |
Instance Method Details
#exitstatus ⇒ Object
51 52 53 |
# File 'opal/stdlib/nodejs/kernel.rb', line 51 def exitstatus @status end |
#inspect ⇒ Object
61 62 63 |
# File 'opal/stdlib/nodejs/kernel.rb', line 61 def inspect "#<Process::Status: pid #{@pid} exit #{@status}>" end |
#success? ⇒ Boolean
57 58 59 |
# File 'opal/stdlib/nodejs/kernel.rb', line 57 def success? @status == 0 end |