Sha256: 28f720fcba9e4084afe26211e7c5147707f5330fe3264d261c233cf9917e83d3

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Vedeu

  class Writer

    attr_reader :writers

    def self.[](*args)
      new(args)
    end

    def initialize(writers)
      @writers = writers
    end

    def ==(other)
      writers == other.writers
    end

    def +(other)
      Writer[*(writers + other.writers)]
    end

    def write(stream)
      @writers.each { |writer| writer.write(stream) }
    end

  end # Consoles

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.3.1 lib/vedeu/output/writer.rb
vedeu-0.3.0 lib/vedeu/output/writer.rb