Class: Bbq::Spawn::Executor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bbq/spawn.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|@process| ... } ⇒ Executor

Returns a new instance of Executor.

Yields:

  • (@process)


15
16
17
18
19
# File 'lib/bbq/spawn.rb', line 15

def initialize(*args)
  @process = ChildProcess.build(*args)
  yield @process if block_given?
  @process
end