Class: SubSpawn::IoHolder::Pipe

Inherits:
Composite show all
Defined in:
lib/subspawn/pipes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childObject (readonly)

Returns the value of attribute child.



29
30
31
# File 'lib/subspawn/pipes.rb', line 29

def child
  @child
end

#parentObject (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

#filenoObject



31
32
33
# File 'lib/subspawn/pipes.rb', line 31

def fileno
	@parent.fileno
end