From: Simon Krahnke Date: 2009-01-28T07:02:43+09:00 Subject: Re: String doesnt auto dup on modification * Mike Gold (2009-01-23) schrieb: > String.public_instance_methods(false).grep(/!/).map(&:to_sym) + Is that a new feature? make the to_sym method act as block. Which to_sym method? > DESTRUCTIVE_METHODS.each { |m| > define_method(m) { |*args, &block| > __setobj__(__getobj__.dup) > __getobj__.send(m, *args, &block) WTF? What's this __[gs]etobj__ about? > (I've used some 1.8.7+ only features.) mfg, simon .... tia