summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-27 18:10:54 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-27 18:10:54 +0000
commite4ffaf6ea862785cef27ec5bd1083d2622ff0121 (patch)
tree8191f6d08e2e4cc063fb527be862a36284fb043c /lib
parentdbe85f1ef0c7a13da7c6abfbd9535d42dfb3ba0e (diff)
* lib/set.rb: each() should return self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/set.rb1
1 files changed, 1 insertions, 0 deletions
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.