If you take the code:

var Vehicle = Class.create({
  initialize: function() {
        alert(***class name***);
  }
});

var Car = Class.create(Vehicle, {
  initialize: function() {
        alert(***class name***);
        alert(***parent class name***);
  }
});



var t1 = new Vehicle("A Vehicle");
var t2 = new Car("A Car");

How would the output the name od the current class and retrieve the
name of the parent class in the relevent sections?

Any help appreciated, many thanks.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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