Sha256: 1fa41c50cac6206c60ca44214a1fc32bc9f5c69601d549d5dd60677e09c42070

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

require_relative '../base_adapter'

class ActiveSet
  module Filter
    class EnumerableAdapter < BaseAdapter
      def process(set)
        @set = set
        @set.select { |item| item.send(@key) == @value }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeset-0.1.0 lib/active_set/filter/enumerable_adapter.rb