module Sequel::AnyNotEmpty

  1. lib/sequel/extensions/any_not_empty.rb

Methods

Public Instance

  1. any?

Public Instance methods

any?()

If a block is not given, return whether the dataset is not empty.

[show source]
   # File lib/sequel/extensions/any_not_empty.rb
35 def any?
36   if defined?(yield)
37     super
38   else
39     !empty?
40   end
41 end