class Parallel::ForkManager::DummyProcessStatus
This class lets us build a dummy exit status which can be used where we expect a Process::Status.
Attributes
exitstatus[R]
@return [Integer]
Public Class Methods
new(exitstatus = 0)
click to toggle source
@param exitstatus [Integer] The exit status we want to simulate.
# File lib/parallel/forkmanager/dummy_process_status.rb, line 9 def initialize(exitstatus = 0) @exitstatus = (Integer(exitstatus) & 0x37) end
Public Instance Methods
coredump?()
click to toggle source
@return [false]
# File lib/parallel/forkmanager/dummy_process_status.rb, line 25 def coredump? false end
stopsig()
click to toggle source
@return [nil]
# File lib/parallel/forkmanager/dummy_process_status.rb, line 19 def stopsig nil end