Class: Cmds::Pipe
- Inherits:
-
Object
- Object
- Cmds::Pipe
- Defined in:
- lib/cmds/pipe.rb
Overview
stupid little wrapper around IO.pipe that can have some extra info attached to it
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#r ⇒ Object
readonly
Returns the value of attribute r.
-
#sym ⇒ Object
readonly
Returns the value of attribute sym.
-
#w ⇒ Object
readonly
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize(name, sym) ⇒ Pipe
constructor
A new instance of Pipe.
Constructor Details
#initialize(name, sym) ⇒ Pipe
Returns a new instance of Pipe.
7 8 9 10 11 |
# File 'lib/cmds/pipe.rb', line 7 def initialize name, sym @name = name @sym = sym @r, @w = IO.pipe end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/cmds/pipe.rb', line 5 def name @name end |
#r ⇒ Object (readonly)
Returns the value of attribute r.
5 6 7 |
# File 'lib/cmds/pipe.rb', line 5 def r @r end |
#sym ⇒ Object (readonly)
Returns the value of attribute sym.
5 6 7 |
# File 'lib/cmds/pipe.rb', line 5 def sym @sym end |
#w ⇒ Object (readonly)
Returns the value of attribute w.
5 6 7 |
# File 'lib/cmds/pipe.rb', line 5 def w @w end |