diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-27 18:10:54 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-27 18:10:54 +0000 |
commit | e4ffaf6ea862785cef27ec5bd1083d2622ff0121 (patch) | |
tree | 8191f6d08e2e4cc063fb527be862a36284fb043c /lib/set.rb | |
parent | dbe85f1ef0c7a13da7c6abfbd9535d42dfb3ba0e (diff) | |
download | ruby-e4ffaf6ea862785cef27ec5bd1083d2622ff0121.tar.gz |
* 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/set.rb')
-rw-r--r-- | lib/set.rb | 1 |
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. |