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