From: RK Sentinel Date: 2009-01-22T18:27:14+09:00 Subject: Re: String doesnt auto dup on modification instance variable then I tend to dup it if the application is larger. > You can even automate conditional dup'ing by doing something like this > > class Object > def dupf > frozen? ? self : dup > end > end > > and then > > class MyClass > def initialize(name) > @name = name.dupf > end > end > > Kind regards > > robert thanks, this looks very helpful. In response to the prev post by Brian, yes its a library for use by others. -- Posted via http://www.ruby-forum.com/.