method

new

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.