Good point. Or even just: anonymous = Class.new do include java.lang.Runnable end
since Object is the default. -Bill On 4/30/07, MenTaLguY <[EMAIL PROTECTED]> wrote:
On Sun, 2007-04-29 at 15:55 -0500, Bill Dortch (JIRA) wrote: > The workaround for the anonymous class syntax: > {code} > # one way to do this > anonymous = Class.new(Object) > anonymous.send :include, java.lang.Runnable > {code} Why not just: anonymous = Class.new(Object) do include java.lang.Runnable end ? -mental