> > This sounds good, in theory, but only if everything is declared inside > the inditialize function.
Which is as it should be if your are really talking about class methods (i.e. instance only members). See my blog post on this subject, which offers up a nice, prototype-y inheritance model and leave Object.extend alone (because it is useful as is for bulk object property copying in other places besides inheritance): http://www.someelement.com/2007/03/multiple-inheritance-with-prototypejs.html I also speak to the whole "true" class level member issue and address the bad habit of tacking said members statically onto the object's prototype. The first part of the post does give examples using that way, just because I know that's what people are used to. Give it a read. Object.inherit is very useful. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
