From: Shugo Maeda Date: 2010-02-23T16:14:20+09:00 Subject: [ruby-core:28304] Re: [Feature #1082] add Object#singleton_class method Hi, 2010/1/5 Yukihiro Matsumoto : > Basically, I agree. �But I cannot deny the fact that we already have > singleton.rb in the distribution, which provide Singleton class. �I > confess I did. �Probably I shouldn't have. Today, I talked with Matz, and he has finally agreed with the use of the term "singleton class." The reason why he has chosen the term "singleton class" is that we have already had Kernel#singleton_methods. Then, the next issue is whether Kernel#singleton_class should create an eigenclass when the receiver has no eigenclass. It would be better to have an optional argument (singleton_class(true/false) or singleton_class(:create => true)?) to switch the behavior. Any thoughts? -- Shugo Maeda