« Return to Thread: Adding method as GString expression to per-instance metaclass

Re: Adding method as GString expression to per-instance metaclass

by Setya :: Rate this Message:

Reply to Author | View in Thread

>Does expando.getTest() work?

No, it doesn't either.

Strangely, If I use GString literal all works as expected.

I also tried to print all the method attached to expando instance :

emc.expandoMethods.each
{
  println it;
}

And the method 'getTest' is there !!!.

Setya

 « Return to Thread: Adding method as GString expression to per-instance metaclass