From: Thomas Sawyer Date: 2011-09-25T02:01:33+09:00 Subject: [ruby-core:39695] [Ruby 1.9 - Feature #5360] BasicObject#binding Issue #5360 has been updated by Thomas Sawyer. Sure. I think the most obvious usecase is with ERB. If I want to strictly control the available interface to an ERB template a subclass of BasicObject is an ideal way to do. But ERB's result method takes a binding. So that's one specific case I've come across, and I am certain there are others given that both BasicObject and binding are very useful devices in the context of meta-programming. ---------------------------------------- Feature #5360: BasicObject#binding http://redmine.ruby-lang.org/issues/5360 Author: Thomas Sawyer Status: Feedback Priority: Normal Assignee: Category: core Target version: For meta-programming purposes I think there needs to be a way to get a BasicObject's binding. -- http://redmine.ruby-lang.org