Class: Bundler::ParallelWorkers::UnixWorker::JobHandler
- Inherits:
-
Struct
- Object
- Struct
- Bundler::ParallelWorkers::UnixWorker::JobHandler
- Defined in:
- lib/bundler/parallel_workers/unix_worker.rb
Instance Attribute Summary collapse
-
#io_r ⇒ Object
Returns the value of attribute io_r.
-
#io_w ⇒ Object
Returns the value of attribute io_w.
-
#pid ⇒ Object
Returns the value of attribute pid.
Instance Method Summary collapse
Instance Attribute Details
#io_r ⇒ Object
Returns the value of attribute io_r
8 9 10 |
# File 'lib/bundler/parallel_workers/unix_worker.rb', line 8 def io_r @io_r end |
#io_w ⇒ Object
Returns the value of attribute io_w
8 9 10 |
# File 'lib/bundler/parallel_workers/unix_worker.rb', line 8 def io_w @io_w end |
#pid ⇒ Object
Returns the value of attribute pid
8 9 10 |
# File 'lib/bundler/parallel_workers/unix_worker.rb', line 8 def pid @pid end |
Instance Method Details
#work(obj) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/bundler/parallel_workers/unix_worker.rb', line 9 def work(obj) Marshal.dump obj, io_w Marshal.load io_r rescue IOError, Errno::EPIPE nil end |