diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-15 03:31:55 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-15 03:31:55 +0000 |
commit | 2d952c6d16ffe06a28bb1007e2cd1410c3db2d58 (patch) | |
tree | 4ceeb47075be749c93f057a68a0e108c3a9b2cc6 | |
parent | 3281b90ecb96f2579cf4b9893abffd45a0993313 (diff) | |
download | ruby-2d952c6d16ffe06a28bb1007e2cd1410c3db2d58.tar.gz |
* lib/ostruct.rb: Create getters and setters after dup.
[Bug #6028] [rubyspecs:0380bcc]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/ostruct.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Feb 15 12:30:46 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca> + + * lib/ostruct.rb: Create getters and setters after dup. + [Bug #6028] [rubyspecs:0380bcc] + Wed Feb 15 10:59:52 2012 Narihiro Nakamura <authornari@gmail.com> * gc.c (HEAP_BITMAP_LIMIT): HEAP_BITMAP_LIMIT is computed on the diff --git a/lib/ostruct.rb b/lib/ostruct.rb index a57eb08e7c..46c178c489 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -97,6 +97,7 @@ class OpenStruct def initialize_copy(orig) super @table = @table.dup + @table.each_key{|key| new_ostruct_member(key)} end # |