Module: Enumerable
encoding: utf-8
Public Visibility
Public Instance Method Summary
#none?(&block) {|Each, Each| ... } |
Enumerable#none? is the logical opposite of the builtin method Enumerable#any?. |
---|
Public Instance Method Details
none?
Enumerable#none? is the logical opposite of the builtin method Enumerable#any?. It returns true if and only if none of the elements in the collection satisfy the predicate.
If no predicate is provided, Enumerable#none? returns true if and only if none of the elements have a true value (i.e. not nil or false).
[View source]
27 28 29 |
# File 'lib/rango/ext/enumerable.rb', line 27 def none?(&block) not self.any?(&block) end |