On Mar 27, 5:40 pm, Jonas Rosenqvist <[EMAIL PROTECTED]> wrote:
> 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).

Objects can have a property called name that has a value.  Any number
of variables can be assigned a reference to the same object, which one
do you expect to represent the name property?  e.g.:

  var a = {name: 'foo'};
  var b = a;
  var c = b;

a, b and c all reference the same object.

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 

Reply via email to