Method: Sequel::AnyNotEmpty#any?

Defined in:
lib/sequel/extensions/any_not_empty.rb

#any?(*a) ⇒ Boolean

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

Returns:

  • (Boolean)


35
36
37
38
39
40
41
# File 'lib/sequel/extensions/any_not_empty.rb', line 35

def any?(*a)
  if !a.empty? || defined?(yield)
    super
  else
    !empty?
  end
end