summaryrefslogtreecommitdiff
path: root/lib/generator.rb
AgeCommit message (Collapse)Author
2012-12-02Make an internal block of Generator return nil instead of self.knu
* lib/generator.rb (Generator#initialize): Make an internal block return nil instead of self. [Bug #7493] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@38145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-02Improve rdoc for Enumerator#next. Remove a not-so-notable note.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26* lib/generator.rb (Enumerator#__generator): Remove next() beforeknu
overriding it to avoid a awarning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11* enumerator.c (enumerator_next, enumerator_rewind),knu
lib/generator.rb (Enumerator#rewind): If the enclosed object responds to a "rewind" method, call it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11* lib/generator.rb (Enumerator#__generator): Now thatknu
Enumerator::Generator is defined, the Generator here must be referred to as ::Generator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10* enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.knu
* lib/generator.rb (Enumerator#next): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-21* enumerator.c (enumerator_ptr), lib/generator.rb:knu
Enumerable::Enumerator is renamed to Enumerator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10* enumerator.c (rb_eStopIteration), eval.c (rb_f_loop), ruby.h:knu
Add a new exception class StopIteration, which breaks Kernel#loop iteration when raised; backported from 1.9. * enumerator.c (enumerator_next, enumerator_rewind): Implement #next and #rewind using the "generator" library. * lib/generator.rb: Implement Enumerable::Enumerator#next and #rewind. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07* eval.c (rb_eval): too many line trace call. (ruby-bugs PR#1320)matz
* numeric.c (flo_to_s): tweak output string based to preserve decimal point and to remove trailing zeros. [ruby-talk:97891] * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM search. [ruby-talk:97342] * hash.c (rb_hash_equal): returns true if two hashes have same set of key-value set. [ruby-talk:97559] * hash.c (rb_hash_eql): returns true if two hashes are equal and have same default values. * string.c (rb_str_equal): always returns true or false, never returns nil. [ruby-dev:23404] * io.c (rb_io_reopen): should use rb_io_check_io(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-16 * lib/generator.rb: corrected doc formatgsinclair
* lib/rinda/rinda.rb: added documentation (from Hugh Sasse) * lib/rinda/tuplespace.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-17* lib/generator.rb: Add rdoc documentation.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-14* lib/generator.rb: A new library which converts an internalknu
iterator to an external iterator. * lib/abbrev.rb: A new library which creates an abbreviation table from a list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e