Sha256: 5387842725f3ad78ee888929ebbd21d6b7b05faa56be5bf84ef4109832c028ed

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require 'kgio_ext'

# use Kgio::Pipe.popen and Kgio::Pipe.new instead of IO.popen
# and IO.pipe to get PipeMethods#kgio_read and PipeMethod#kgio_write
# methods.
class Kgio::Pipe < IO
  include Kgio::PipeMethods
  class << self

    # call-seq:
    #
    #   rd, wr = Kgio::Pipe.new
    #
    # This creates a new pipe(7) with Kgio::Pipe objects that respond
    # to PipeMethods#kgio_read and PipeMethod#kgio_write
    alias new pipe
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kgio-1.1.0 lib/kgio.rb
kgio-1.0.1 lib/kgio.rb