I'd like to get at the variable name of class.
var Poop = new Class({
getClassName: function() {
return arguments.callee._owner.name;
}
});
var a = new Poop();
a.getClassName(); //want 'Poop'
I'm making that will be implemented into other classes, and I'd like to build a SQL query that uses the class name (pluralized) for the table.
I've tried various combinations of the above example to try to get the name, and can't figure it out (if it's even possible considering MooTools class system).