Sha256: c95554cf8b1666830c7a166eec9a21c4e90a13f04c322f74a0cd65aa41f32647

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

module XML
  module SAX

    # Define a filter chain top to bottom.
    #
    #--
    # TODO:
    # * More enumerable methods so you can alter pipelines.
    class Pipeline < Filter
      def initialize(*filters)
        self.filter = filters.each_with_index{|f, i| f.filter = filters[i + 1]}.first
      end
    end # Pipeline

  end # SAX
end # XML

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
shanna-xml-sax-machines-0.2.1 lib/xml-sax-machines/pipeline.rb
xml-sax-machines-0.4.2 lib/xml-sax-machines/pipeline.rb
xml-sax-machines-0.4.1 lib/xml-sax-machines/pipeline.rb
xml-sax-machines-0.4.0 lib/xml-sax-machines/pipeline.rb
xml-sax-machines-0.3.0 lib/xml-sax-machines/pipeline.rb