[Nitro] Problem with OpenObject

TRANS transfire at gmail.com
Wed Jun 28 02:02:13 EDT 2006


BTW I found a bug with #__self__ and __as__. I've fixed it, and will
of course go out with 1.4.4.

Also I think this is the "real deal" for BasicObject:

  # If the method isn't defined and has the form '__method__'
  # then try sending 'method' to self-as-Object.

  def method_missing( sym, *args, &blk )
    if md = /^__(.+)__$/.match( sym.to_s )
      __as__(Object).__send__( md[1], *args, &blk )
    else
      super
    end
  end

This will of course allow you to use #__eval__.

T.


More information about the Nitro-general mailing list