Hi, I'd like to have the following behavior:
var MyGenericClass = new Class({getClass: function(){ ... }});
var myObject = new MyGenericClass();
assertEquals( "MyGenericClass", myObject.getClass() );
How should I implement getClass?
I tried:
this.constructor.toString().match( /function (\w+)\(.+/ )[1];
which worked for ordinary objects but doesn't works with MooTools
objects?
Thank you,
Zsolt
I know I'm too much Java oriented, I'd like to reuse the patters
worked for me on server side. Sorry.
