From e4ffaf6ea862785cef27ec5bd1083d2622ff0121 Mon Sep 17 00:00:00 2001 From: knu Date: Sun, 27 Jul 2003 18:10:54 +0000 Subject: [PATCH] * lib/set.rb: each() should return self. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/set.rb | 1 + 2 files changed, 5 insertions(+) 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.