Class: Test::Cmd::Pipe Private
- Inherits:
-
Struct
- Object
- Struct
- Test::Cmd::Pipe
- Defined in:
- lib/test/cmd.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#r ⇒ Object
Returns the value of attribute r.
-
#w ⇒ Object
Returns the value of attribute w.
Class Method Summary collapse
-
.pair ⇒ Object
private
Instance Method Summary collapse
-
#close ⇒ Object
private
Instance Attribute Details
#r ⇒ Object
Returns the value of attribute r
10 11 12 |
# File 'lib/test/cmd.rb', line 10 def r @r end |
#w ⇒ Object
Returns the value of attribute w
10 11 12 |
# File 'lib/test/cmd.rb', line 10 def w @w end |
Class Method Details
.pair ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/test/cmd.rb', line 11 def self.pair new(*IO.pipe) end |
Instance Method Details
#close ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/test/cmd.rb', line 15 def close [r, w].each(&:close) end |