diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-25 16:35:25 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-25 16:35:25 +0000 |
commit | fc7fa64b0f38ec6222c70eeb7c470e383a7c2e36 (patch) | |
tree | 7fb7564be01fcc7d02c27adf728f853faa36e670 /lib | |
parent | bdedc17f0cd55e1c277330458ace9e6e8ff00383 (diff) |
merge revision(s) 57515: [Backport #13169]
lib/ostruct.rb: Fix returned value of each_pair.
From a patch by Marcus Stollsteimer. [Fixes #13169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ostruct.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb index f51eb7b5db..3a1cde4322 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -127,6 +127,7 @@ class OpenStruct def each_pair return to_enum(__method__) { @table.size } unless block_given? @table.each_pair{|p| yield p} + self end # |