method

new

ruby latest stable - Class: Enumerable::Enumerator

Method deprecated or moved

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

new(...)
public

Creates a new Enumerable::Enumerator object, which is to be used as an Enumerable object using the given object’s given method with the given arguments.

Use of this method is discouraged. Use Kernel#enum_for() instead.