Module: Sequel::AnyNotEmpty
- Defined in:
- lib/sequel/extensions/any_not_empty.rb
Instance Method Summary collapse
-
#any? ⇒ Boolean
If a block is not given, return whether the dataset is not empty.
Instance Method Details
#any? ⇒ Boolean
If a block is not given, return whether the dataset is not empty.
35 36 37 38 39 40 41 |
# File 'lib/sequel/extensions/any_not_empty.rb', line 35 def any? if defined?(yield) super else !empty? end end |