class
Enumerable::Enumerator
ruby latest stable
- Superclass: Object
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
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