Project

General

Profile

Bug #2630

generator.rb missing from 1.9.1 standard library?

Added by mikewoodhouse (Mike Woodhouse) over 9 years ago. Updated about 8 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
ruby -v:
1.9.1
[ruby-core:27699]

Description

=begin
Installed 1.9.1 Windows installer RC1 - generator.rb seems not to be not present

I copied generator.rb from lib/ruby/1.8, which fixed the problem with the library that required it.

AFAIK, generator is part of the standard library in 1.8 (it's documented on p683 of Pickaxe Second Edition).

Unintended omission? Functionality not needed in 1.9?
=end

History

#1

Updated by rogerdpack (Roger Pack) over 9 years ago

=begin
I believe it's been replaced with (now built in) enumerators and fibers.
I think you can get the same functionality Generator.new used to give you by just replacing it with Enumerator.new
-r
ref: http://wiki.github.com/rdp/ruby_tutorials_core/enumerator
=end

Also available in: Atom PDF