Issue #6478 has been updated by nobu (Nobuyoshi Nakada).


=begin
"Method transplanting" is introduced into 2.0, so you can write:
  class Foo < BasicObject
    include ::Module.new {
      [:dup, :initialize_dup, :initialize_copy].each {|m|
        define_method(m, ::Kernel.instance_method(m))
      }
    }
  end

I expect someone would make such method in (({Module})) as an external library.
=end

----------------------------------------
Feature #6478: BasicObject#__class__
https://bugs.ruby-lang.org/issues/6478#change-31593

Author: trans (Thomas Sawyer)
Status: Feedback
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: next minor


How else is one supposed to get the class of a subclass of BasicObject?



-- 
http://bugs.ruby-lang.org/