Class: SubSpawn::IoHolder::Pipe
- Defined in:
- lib/subspawn/pipes.rb
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#parent ⇒ Object
(also: #to_io)
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #fileno ⇒ Object
-
#initialize(parent, child) ⇒ Pipe
constructor
A new instance of Pipe.
Constructor Details
#initialize(parent, child) ⇒ Pipe
Returns a new instance of Pipe.
26 27 28 |
# File 'lib/subspawn/pipes.rb', line 26 def initialize(parent, child) @parent, @child = parent, child end |
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
29 30 31 |
# File 'lib/subspawn/pipes.rb', line 29 def child @child end |
#parent ⇒ Object (readonly) Also known as: to_io
Returns the value of attribute parent.
29 30 31 |
# File 'lib/subspawn/pipes.rb', line 29 def parent @parent end |
Instance Method Details
#fileno ⇒ Object
31 32 33 |
# File 'lib/subspawn/pipes.rb', line 31 def fileno @parent.fileno end |