Sha256: ee739460608c1a710bd4065e50c3f9dea59a9c9d979c50edc784815eb72dfc33

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

module Libruby  
  class MultiIO
    def initialize(*targets)
      @targets = targets
    end
    
    def write(*args)
      @targets.each {|t| t.write(*args)}
    end
    
    def close
      @targets.each(&:close)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
libruby-0.6.0 lib/libruby/multi_io.rb
libruby-0.5.0 lib/libruby/multi_io.rb
libruby-0.4.2 lib/libruby/multi_io.rb
libruby-0.4.1 lib/libruby/multi_io.rb
libruby-0.4.0 lib/libruby/multi_io.rb