Sha256: 3fd0b4124b23df68ac5e006e128d312292e5af0d7ffda70a91d04e64d2abed2e
Contents?: true
Size: 519 Bytes
Versions: 4
Compression:
Stored size: 519 Bytes
Contents
module CDQ class CDQCollectionProxy < CDQTargetedQuery def initialize(objects, entity_description) @objects = objects super(entity_description, constantize(entity_description.managedObjectClassName)) @predicate = self.where("%@ CONTAINS SELF", @objects).predicate end def count @objects.size end alias :length :count alias :size :count def get @objects end def array @objects end def first @objects.first end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cdq-1.0.2 | motion/cdq/collection_proxy.rb |
cdq-1.0.1 | motion/cdq/collection_proxy.rb |
cdq-1.0.0 | motion/cdq/collection_proxy.rb |
cdq-0.1.11 | motion/cdq/collection_proxy.rb |