From: Florian Gross Date: 2004-09-03T04:45:19+09:00 Subject: Re: Not just $SAFE, but damn $SAFE o = Object.new def o.to_s Class.new(Class.new { def class; puts '5'; String; end }).new end o I'd suggest using Object.instance_method(:class).bind(obj).call instead of your singleton class approach. Regards, Florian Gross