From: matz@... (Yukihiro Matsumoto) Date: 2003-04-21T09:24:45+09:00 Subject: Re: Warning: redefine instance Hi, In message "Re: Warning: redefine instance" on 03/04/21, haldane writes: |Just to clarify my question a little, the warning comes from this line |in singleton.rb (just after the instance has been created): | |def self.instance() @__instance__ end | |Is there any reason it could not be replaced with | |define_method(:instance, proc { @__instance__ }) | |which does not result in the warning? Nice idea, thank you. matz.