Issue #5505 has been updated by Yukihiro Matsumoto.

Status changed from Open to Rejected


  o = BasicObject.new
  class <<o
    include Enumerable
  end

should work.

----------------------------------------
Feature #5505: BasicObject#__extend__
http://redmine.ruby-lang.org/issues/5505

Author: Thomas Sawyer
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 1.9.x


Unless there is already some way to do it that I've overlooked, the it would be nice if there were still some way to extend an instance of BasicObject.

Probably the easiest way is defining #__extend__.



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