Sha256: 7a525662a197bbe16e2cb8505e49dfb5e6c6ea764f1ff3e8f53ad3321c28e8b0

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

module RecordFilter
  module DSL
    class DSLFactory # :nodoc: all
      SUBCLASSES = Hash.new do |h, k|
        h[k] = Class.new(RecordFilter::DSL::DSL)
      end

      class << self
        def create(clazz)
          subclass(clazz).new(clazz, Conjunction.new(clazz, :all_of))
        end

        def subclass(clazz)
          SUBCLASSES[clazz.object_id]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
aub-record_filter-0.8.0 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.0 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.1 lib/record_filter/dsl/dsl_factory.rb
outoftime-record_filter-0.8.0 lib/record_filter/dsl/dsl_factory.rb