method

first

Importance_1
Ruby latest stable (v1_8_7_72) - 0 notes - Class: Enumerable
first(...) public

Returns the first element, or the first n elements, of the enumerable. If the enumerable is empty, the first form returns nil, and the second form returns an empty array.

Show source
Register or log in to add new notes.