Sha256: bfd954d7a48948b90bd99f3abd1f4b41abddae3b61dfcddd584ec3b7d0f2f1ef
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
module Ambition module Enumerable include ::Enumerable def each(&block) find(:all, query_context.to_hash).each(&block) end def any?(&block) select(&block).size > 0 end def all?(&block) size == select(&block).size end def empty? size.zero? end def entries find(:all, query_context.to_hash) end alias_method :to_a, :entries end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ambition-0.1.3 | ./lib/ambition/enumerable.rb |
ambition-0.1.4 | ./lib/ambition/enumerable.rb |
ambition-0.1.5 | ./lib/ambition/enumerable.rb |