Say I wanted to get the name of the instance of a object/prototype
class, what's the best method of doing so?

Is there some function/property in prototype to do this that I've
missed?

Btw I dont mean just refering to the instance (this) I want the actual
name of the instance (nameofinstance).

var nameofinstance = Class.create({
  initialize: function() {
        alert(...nameofinstance...);
  }
});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to