Module: Flock::Mixins::Sizeable
- Included in:
- SelectOperation
- Defined in:
- lib/flock/mixins/sizeable.rb
Instance Method Summary collapse
Instance Method Details
#any?(&block) ⇒ Boolean
4 5 6 |
# File 'lib/flock/mixins/sizeable.rb', line 4 def any?(&block) block_given? ? map(&block).any? : size > 0 end |
#empty? ⇒ Boolean
8 9 10 |
# File 'lib/flock/mixins/sizeable.rb', line 8 def empty? size == 0 end |