Class: Mutant::Isolation::Fork::Parent Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mutant/isolation/fork.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

ignore :reek:InstanceVariableAssumption

Instance Method Summary collapse

Instance Method Details

#callResult

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parent process

Parameters:

  • reader (IO)
  • writer (IO)

Returns:



40
41
42
43
44
45
46
# File 'lib/mutant/isolation/fork.rb', line 40

def call
  pid = start_child or return ForkError.new

  read_child_result(pid)

  @result
end