Flowdock
method

many?

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Enumerable
many?() public

Returns true if the enumerable has more than 1 element. Functionally equivalent to enum.to_a.size > 1. Can be called with a block too, much like any?, so people.many? { |p| p.age > 26 } returns true if more than one person is over 26.

Show source
Register or log in to add new notes.