Robert Dober
3/27/2006 4:11:00 PM
On 3/27/06, listrecv@gmail.com <listrecv@gmail.com> wrote:
>
>
> the parent, which seems unrubyish... I'd rather just code the parent,
> and if the child changes the URL, so be it!
and that is exactly why you should not use a Constant.
Constants do not change, do they ;)?
You should use an instance variable and define accessor methods to it. (or
class variable for that matter)
These accessor methods are then used by the superclass.
This is a classic pattern, but I do not know its name in English, sorry.
Hope this helps
Robert
--
Deux choses sont infinies : l'univers et la bêtise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.
- Albert Einstein