tess: ensure buffer is cleared on failures
[kgio.git] / lib / kgio.rb
blobe104f4676fde9743580da17db64b6fc1609ba096
1 require 'kgio_ext'
3 # use Kgio::Pipe.popen and Kgio::Pipe.new instead of IO.popen
4 # and IO.pipe to get PipeMethods#kgio_read and PipeMethod#kgio_write
5 # methods.
6 class Kgio::Pipe < IO
7   include Kgio::PipeMethods
8   class << self
10     # call-seq:
11     #
12     #   rd, wr = Kgio::Pipe.new
13     #
14     # This creates a new pipe(7) with Kgio::Pipe objects that respond
15     # to PipeMethods#kgio_read and PipeMethod#kgio_write
16     alias new pipe
17   end
18 end