Why would Class.create() copy static class members to the prototype? That
doesn't make any sense. That completely rules out the possibility that the
developer, you know, wanted them to remain static...





On Wed, Jul 2, 2008 at 10:08 AM, Antoine Quint <[EMAIL PROTECTED]>
wrote:

>
> Hi Ryan,
>
> On Jul 2, 2008, at 17:01 , Ryan Gahl wrote:
>
> > It probably has something to do with the fact that you are defining
> > the getter/setter statically on the class itself, where in the
> > second example, you are actually defining them at the instance
> > level, which is what you want.
>
> I don't intend to have them defined on the class itself. I define them
> on MyClass indeed, but when I do "MyClass = Class.create(MyClass)", I
> think that should have copied class members onto the MyClass
> prototype, isn't that right?
>
> I guess the issue there is that these special __defineGetter__ and
> __defineSetter__ members are not recognized by Class.create() and thus
> aren't copied onto the prototype.
>
> Antoine
>
> >
>


-- 
Ryan Gahl
Manager, Senior Software Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl

--~--~---------~--~----~------------~-------~--~----~
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