Sha256: de05a06fcd7ed0e9fe7d2f31141357484ceba4d7a5e383d10faab9ad56ae47a2

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require_relative './processor_base'
require_relative './processor_sort/enumerable_adapter'
require_relative './processor_sort/active_record_adapter'

class ActiveSet
  class Processor::Sort < Processor::Base
    def process
      adapters.each do |adapter|
        result = adapter.new(@set, @instructions).process
        break(result) if result
      end
    end

    register_adapter(EnumerableAdapter)
    register_adapter(ActiveRecordAdapter)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activeset-0.6.5 lib/active_set/processor_sort.rb
activeset-0.6.4 lib/active_set/processor_sort.rb
activeset-0.6.3 lib/active_set/processor_sort.rb
activeset-0.6.2 lib/active_set/processor_sort.rb
activeset-0.6.1 lib/active_set/processor_sort.rb
activeset-0.6.0 lib/active_set/processor_sort.rb