class

Enumerable::Enumerator

ruby latest stable - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

A class which provides a method `each’ to be used as an Enumerable object.

Included modules

  • Enumerable

Files

  • enumerator.c
  • lib/generator.rb

1Note

Adds new methods to Object and Enumerable

yonosoytu · Aug 23, 2008

For using this class you need

require 'enumerator'

Which also adds this methods to Object:

  • to_enum
  • enum_for

And this other methods to Enumerable:

  • each_slice
  • enum_slice
  • each_cons
  • enum_cons
  • enum_with_index