Hi,
In message "Re: BasicObject.instance_eval"
on Fri, 4 Jan 2008 13:45:18 +0900, Dave Thomas <dave / pragprog.com> writes:
|Or even have a BasicObject method, which by default just reurns a
|BasicObject class. Then define + on it, which then binds those
|unbound methods into a singleton instance, so you could write
|
|
| class Foo < BasicObject + :instance_eval
| ...
| end
Interesting idea. I'd rather try similar idea with Traits in Ruby
2.0 in the future.
matz.