Sha256: 40b8c6dc54b736cb6ca428f6b988d9e93f7376b71e9f9d5ba3470afb59ebf1ce

Contents?: true

Size: 314 Bytes

Versions: 14

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

class ActiveSet
  class BaseAdapter
    def initialize(set, instruction)
      @set = set
      @instruction = instruction
    end

    def return_set(set = nil)
      {}.tap do |h|
        h[:set] = set || @set
        h[:processed] = set ? true : false
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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