mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3281b90ecb
commit
2d952c6d16
2 changed files with 6 additions and 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>
|
Wed Feb 15 10:59:52 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||||
|
|
||||||
* gc.c (HEAP_BITMAP_LIMIT): HEAP_BITMAP_LIMIT is computed on the
|
* gc.c (HEAP_BITMAP_LIMIT): HEAP_BITMAP_LIMIT is computed on the
|
||||||
|
|
|
@ -97,6 +97,7 @@ class OpenStruct
|
||||||
def initialize_copy(orig)
|
def initialize_copy(orig)
|
||||||
super
|
super
|
||||||
@table = @table.dup
|
@table = @table.dup
|
||||||
|
@table.each_key{|key| new_ostruct_member(key)}
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue