On Aug 15, 2006, at 11:18 AM, Kevin Olbrich wrote:

> b = a.clone

That's not a deep copy:

 >> class CopyTest
 >>  attr_accessor :one
 >> end
=> nil
 >>
?> a = CopyTest.new
=> #<CopyTest:0x337898>
 >> a.one = [1,2,3,4]
=> [1, 2, 3, 4]
 >> b = a.clone
=> #<CopyTest:0x32fc4c @one=[1, 2, 3, 4]>
 >> a.one.object_id
=> 1673774
 >> b.one.object_id
=> 1673774

James Edward Gray II