Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
skylight / lib / skylight / util / multi_io.rb
Size: Mime:
# Util allowing proxying writes to multiple location
# Used from extconf
module Skylight
  module Util
    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
end