diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/set.rb | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Mon Jul 28 03:08:47 2003 Akinori MUSHA <knu@iDaemons.org> + + * lib/set.rb: each() should return self. + Mon Jul 28 01:35:32 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_str_chomp_bang): defer rb_str_modify() to actual diff --git a/lib/set.rb b/lib/set.rb index 37332e1fa6..935c07c3e0 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -178,6 +178,7 @@ class Set # the element as parameter. def each @hash.each_key { |o| yield(o) } + self end # Adds the given object to the set and returns self. |