Sha256: c65da925b90796bea5be8ff09e9f3967e88947845675dd5374617b70a3ebf9f7

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Processors
    class Each
      include ComparableInstance

      attr_reader :processors

      def initialize(processors)
        @processors = processors

        freeze
      end

      def process(str, current_node, matched_node, acc)
        @processors.each do |processor|
          processor.process(str, current_node, matched_node, acc)
        end
      end

      freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/processors/each.rb
leftovers-0.12.1 lib/leftovers/processors/each.rb
leftovers-0.12.0 lib/leftovers/processors/each.rb
leftovers-0.11.2 lib/leftovers/processors/each.rb
leftovers-0.11.1 lib/leftovers/processors/each.rb
leftovers-0.11.0 lib/leftovers/processors/each.rb
leftovers-0.10.0 lib/leftovers/processors/each.rb
leftovers-0.9.0 lib/leftovers/processors/each.rb