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 | 048d258eb2ee2f63991bd2543b9faeef7962f43b (patch) | |
| tree | 8191f6d08e2e4cc063fb527be862a36284fb043c /lib/set.rb | |
| parent | cd565c1134351d2af144e071e79a1facbc1bc842 (diff) | |
| download | ruby-048d258eb2ee2f63991bd2543b9faeef7962f43b.tar.gz ruby-048d258eb2ee2f63991bd2543b9faeef7962f43b.tar.xz ruby-048d258eb2ee2f63991bd2543b9faeef7962f43b.zip | |
* lib/set.rb: each() should return self.
git-svn-id: http://svn.ruby-lang.org/repos/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 37332e1fa..935c07c3e 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. |
