summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-27 16:55:20 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-27 16:55:20 +0000
commit7f04247e6db5eaad447c8cc04332058fbd228973 (patch)
tree04d77d1aa30a00be4e2c1e3a8966aa50d12ae534 /lib
parent65639d44e962419bc1da1f1dfbec232abcced6cd (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_3@58178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/ostruct.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index bae0f3aac5..d2375a2572 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -134,6 +134,7 @@ class OpenStruct
def each_pair
return to_enum(__method__) { @table.size } unless block_given?
@table.each_pair{|p| yield p}
+ self
end
#