module Rethinker::Selection::Count

Public Instance Methods

any?() click to toggle source
# File lib/rethinker/selection/count.rb, line 10
def any?
  !empty?
end
count() click to toggle source
# File lib/rethinker/selection/count.rb, line 2
def count
  chain(Rethinker::Criterion.new(:count)).run
end
empty?() click to toggle source
# File lib/rethinker/selection/count.rb, line 6
def empty?
  count == 0
end