Sha256: ee71bd9ad3f156fcbadec760afc4fddabdd9612f27f58520da6f45524f12c734

Contents?: true

Size: 409 Bytes

Versions: 19

Compression:

Stored size: 409 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)
          get_subclass(clazz).new(clazz, Conjunction.new(clazz, :all_of))
        end

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

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
aub-record_filter-0.9.10 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.11 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.12 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.2 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.3 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.4 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.5 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.6 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.7 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.8 lib/record_filter/dsl/dsl_factory.rb
aub-record_filter-0.9.9 lib/record_filter/dsl/dsl_factory.rb
record_filter-1.0.1 lib/record_filter/dsl/dsl_factory.rb
record_filter-1.0.0 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.17 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.16 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.15 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.14 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.13 lib/record_filter/dsl/dsl_factory.rb
record_filter-0.9.12 lib/record_filter/dsl/dsl_factory.rb