Class: Bbq::Spawn::Executor
- Inherits:
-
Object
- Object
- Bbq::Spawn::Executor
- Extended by:
- Forwardable
- Defined in:
- lib/bbq/spawn.rb
Instance Attribute Summary collapse
-
#io_strategy ⇒ Object
Returns the value of attribute io_strategy.
Instance Method Summary collapse
-
#initialize(*args) {|@process| ... } ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(*args) {|@process| ... } ⇒ Executor
Returns a new instance of Executor.
19 20 21 22 23 24 |
# File 'lib/bbq/spawn.rb', line 19 def initialize(*args) @strategy = :mute @process = ChildProcess.build(*args) yield @process if block_given? @process end |
Instance Attribute Details
#io_strategy ⇒ Object
Returns the value of attribute io_strategy.
15 16 17 |
# File 'lib/bbq/spawn.rb', line 15 def io_strategy @io_strategy end |