Author Login
Post Reply
On 2/9/2010 12:34 PM, cpjust wrote:
> Am I correct in assuming that every groovy class inherits from
> DefaultGroovyMethods?
>
More or less. It's more accurate to say the methods are added to the
class of the first argument. So if there's a DefaultGroovyMethod like this:
static foo (Collection c, String s) { ... }
Then all Collections will get (what looks like) an instance method
foo(String s).
Best,
Martin
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email