From: Suraj Kurapati Date: 2009-02-01T05:58:43+09:00 Subject: [ruby-core:21702] [Feature #1082] add Object#singleton_class method Feature #1082: add Object#singleton_class method http://redmine.ruby-lang.org/issues/show/1082 Author: Suraj Kurapati Status: Open, Priority: Normal Category: core, Target version: 1.9.2 Please add Object#singleton_class method to the Ruby API. This method would allow us to write: hello.singleton_class Instead of always having to write: (class << hello; self; end) Furthermore, the name "singleton_class" should be used to minimize disruption to the existing Ruby API, which already uses the name "singleton": >> Object.instance_methods.grep(/singleton/) => [:singleton_methods, :define_singleton_method] >> RUBY_DESCRIPTION => "ruby 1.9.1p0 (2009-01-20 revision 21700) [i686-linux]" Thanks for your consideration. ---------------------------------------- http://redmine.ruby-lang.org