Class: ChildProcess::AbstractProcess

Inherits:
Object
  • Object
show all
Defined in:
lib/pdk/monkey_patches.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ AbstractProcess

Returns a new instance of AbstractProcess.

Raises:

  • (ArgumentError)


35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/pdk/monkey_patches.rb', line 35

def initialize(*args)
  raise ArgumentError, "all arguments must be String: #{args.inspect}" unless args.all?(String)

  @args        = args
  @started     = false
  @exit_code   = nil
  @io          = nil
  @cwd         = nil
  @detach      = false
  @duplex      = false
  @leader      = false
  @environment = {}
end