Module: Sequel::AnyNotEmpty

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

Instance Method Summary collapse

Instance Method Details

#any?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?
  if block_given?
    super
  else
    !empty?
  end
end