Method: ChildProcess::AbstractProcess#initialize
- Defined in:
- lib/childprocess/abstract_process.rb
#initialize(args) ⇒ AbstractProcess
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.
Create a new process with the given args.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/childprocess/abstract_process.rb', line 43 def initialize(args) unless args.all? { |e| e.kind_of?(String) } raise ArgumentError, "all arguments must be String: #{args.inspect}" end @args = args @started = false @exit_code = nil @io = nil @cwd = nil @detach = false @duplex = false @leader = false @environment = {} end |