module
Importance_2
Ruby latest stable (v1_8_7_72) - 1 note

The Enumerable mixin provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method each, which yields successive members of the collection. If Enumerable#max, #min, or #sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collection.

Show files where this module is defined (4 files)
Register or log in to add new notes.
August 23, 2008
1 thank

Some methods listed for this class need require 'enumerator'

The methods:

need that you put this require in your scripts:

  require 'enumerator'