From: Thomas Sawyer Date: 2011-10-28T23:36:02+09:00 Subject: [ruby-core:40496] [ruby-trunk - Feature #5505] BasicObject#__extend__ Issue #5505 has been updated by Thomas Sawyer. Ah, right I forgot about this... what do you call it? The "callback"? It needs to be: Enumerable.__send__(:extend_object, BasicObject.new) but it worked. @matz thanks that will work too --although with a little more meta-programming if the module was in a variable. Thanks. Sorry for the noise. Should have put the question on ruby-talk instead... but there so little communication actually going on there these days. ---------------------------------------- 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