Sha256: 77c5a44a3f4f6bd3a6616b706733409710dc758709be12fcc0f4c149376c69bc

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require_relative './base_processor'
require_relative './sort/enumerable_adapter'
require_relative './sort/active_record_adapter'

class ActiveSet
  class SortProcessor < BaseProcessor
    queue_adapter ActiveRecordAdapter
    queue_adapter EnumerableAdapter

    def process
      adapters.reduce(@set) do |outer_set, adapter|
        @instructions.process_adapter(set: outer_set, adapter: adapter)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activeset-0.5.8 lib/active_set/processors/sort_processor.rb
activeset-0.5.7 lib/active_set/processors/sort_processor.rb
activeset-0.5.6 lib/active_set/processors/sort_processor.rb
activeset-0.5.5 lib/active_set/processors/sort_processor.rb
activeset-0.5.4 lib/active_set/processors/sort_processor.rb
activeset-0.5.3 lib/active_set/processors/sort_processor.rb
activeset-0.5.2 lib/active_set/processors/sort_processor.rb
activeset-0.5.1 lib/active_set/processors/sort_processor.rb
activeset-0.5.0 lib/active_set/processors/sort_processor.rb
activeset-0.4.4 lib/active_set/processors/sort_processor.rb
activeset-0.4.3 lib/active_set/processors/sort_processor.rb
activeset-0.4.2 lib/active_set/processors/sort_processor.rb
activeset-0.4.1 lib/active_set/processors/sort_processor.rb