summaryrefslogtreecommitdiff
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-15 03:31:55 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-15 03:31:55 +0000
commit2d952c6d16ffe06a28bb1007e2cd1410c3db2d58 (patch)
tree4ceeb47075be749c93f057a68a0e108c3a9b2cc6 /lib/ostruct.rb
parent3281b90ecb96f2579cf4b9893abffd45a0993313 (diff)
* 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
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index a57eb08..46c178c 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
#