Sha256: 939bf9e283dbc957b496a95f344dd00c600d9f6bd27980165a58e6581e856ec4

Contents?: true

Size: 279 Bytes

Versions: 15

Compression:

Stored size: 279 Bytes

Contents

module Furnace
  module Transform
    class Pipeline
      def initialize(stages)
        @stages = stages
      end

      def run(*sequence)
        @stages.each do |stage|
          sequence = stage.transform *sequence
        end

        sequence
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
furnace-0.2.5 lib/furnace/transform/pipeline.rb
furnace-0.2.4 lib/furnace/transform/pipeline.rb
furnace-0.2.3 lib/furnace/transform/pipeline.rb
furnace-0.2.2 lib/furnace/transform/pipeline.rb
furnace-0.2.1 lib/furnace/transform/pipeline.rb
furnace-0.2.0 lib/furnace/transform/pipeline.rb
furnace-0.1.2 lib/furnace/transform/pipeline.rb
furnace-0.1.1 lib/furnace/transform/pipeline.rb
furnace-0.1.0 lib/furnace/transform/pipeline.rb
furnace-0.0.8 lib/furnace/transform/pipeline.rb
furnace-0.0.7 lib/furnace/transform/pipeline.rb
furnace-0.0.6 lib/furnace/transform/pipeline.rb
furnace-0.0.4 lib/furnace/transform/pipeline.rb
furnace-0.0.3 lib/furnace/transform/pipeline.rb
furnace-0.0.2 lib/furnace/transform/pipeline.rb