diff --git a/ChangeLog b/ChangeLog index e50cf86bdf..af30fda552 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 28 03:08:47 2003 Akinori MUSHA + + * lib/set.rb: each() should return self. + Mon Jul 28 01:35:32 2003 Yukihiro Matsumoto * 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.