diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-08 07:43:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-08 07:43:54 +0000 |
commit | a7926befe0e9eeb5a1ccc76e05e4f4aebb5f8caf (patch) | |
tree | a5d9d22d3da8d145fe52123907096405808a194b /test/dbm | |
parent | 26051e1d06f128fa2201d01936761634e8925c8e (diff) | |
download | ruby-a7926befe0e9eeb5a1ccc76e05e4f4aebb5f8caf.tar.gz |
* object.c (rb_obj_clone): call initialize_clone hook method to
call initialize_copy.
* object.c (rb_obj_dup): call initialize_dup hook.
* lib/delegate.rb (Delegator#initialize_clone): use new hook to
implement deep copy. [ruby-dev:40242]
* lib/delegate.rb (Delegator#initialize_dup): ditto.
* test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add
a test to ensure #clone copies frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
0 files changed, 0 insertions, 0 deletions