method
many?
v3.1.0 -
Show latest stable
- Class:
Enumerable
many?(&block)public
Returns true if the collection has more than 1 element. Functionally equivalent to collection.size > 1. Can be called with a block too, much like any?, so people.many? { |p| p.age > 26 } returns true if more than 1 person is over 26.