From: "nobu (Nobuyoshi Nakada)" Date: 2012-05-23T14:17:52+09:00 Subject: [ruby-core:45195] [ruby-trunk - Feature #6478][Feedback] BasicObject#__class__ Issue #6478 has been updated by nobu (Nobuyoshi Nakada). Status changed from Assigned to Feedback Target version changed from 1.9.3 to 2.0.0 *Why* do you need it? BTW, it's possible with pure-ruby. class Foo < BasicObject include ::Kernel.dup.module_eval { alias_method(:__class__, :class) undef_method *(instance_methods - [:__class__, :object_id]) self } end p Foo.new.__class__ ---------------------------------------- Feature #6478: BasicObject#__class__ https://bugs.ruby-lang.org/issues/6478#change-26778 Author: trans (Thomas Sawyer) Status: Feedback Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: 2.0.0 How else is one supposed to get the class of a subclass of BasicObject? -- http://bugs.ruby-lang.org/