Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #3163
| From | Joey Zhou <yimutang@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: How to use Enumerator::Generator in Ruby 1.9.2 |
| Date | 2011-04-19 07:49 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <02a9a5a3a445776b6e7bbeba665d8bc9@ruby-forum.com> (permalink) |
| References | <9bf8d8ed06528ddc8ebda9e54b79e232@ruby-forum.com> |
e = Enumerator.new do |y| y << 1 end p e #=> #<Enumerator: #<Enumerator::Generator:0x1345b00>:each> well, it seems that e is an Enumerator, but has an Enumerator::Generator in it. I am confused what on earth Enumerator::Generator is. Can I get an object that can return "Enumerator::Generator" if I type "obj.class"? -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to use Enumerator::Generator in Ruby 1.9.2 Joey Zhou <yimutang@gmail.com> - 2011-04-19 01:43 -0500
Re: How to use Enumerator::Generator in Ruby 1.9.2 Robert Klemme <shortcutter@googlemail.com> - 2011-04-19 02:44 -0500
Re: How to use Enumerator::Generator in Ruby 1.9.2 Johannes Held <johannes.held@informatik.uni-erlangen.de> - 2011-04-19 12:55 +0200
Re: How to use Enumerator::Generator in Ruby 1.9.2 Robert Klemme <shortcutter@googlemail.com> - 2011-04-19 07:01 -0500
Re: How to use Enumerator::Generator in Ruby 1.9.2 Joey Zhou <yimutang@gmail.com> - 2011-04-19 07:49 -0500
Re: How to use Enumerator::Generator in Ruby 1.9.2 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-19 12:36 -0500
Re: How to use Enumerator::Generator in Ruby 1.9.2 Joey Zhou <yimutang@gmail.com> - 2011-04-19 21:23 -0500
csiph-web