Module: Sequel::AnyNotEmpty
- Defined in:
- lib/sequel/extensions/any_not_empty.rb
Instance Method Summary collapse
-
#any?(*a) ⇒ Boolean
If a block is not given, return whether the dataset is not empty.
Instance Method Details
#any?(*a) ⇒ 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?(*a) if !a.empty? || defined?(yield) super else !empty? end end |