logo       

Re: Sibling rivalry and class variables: msg#01197

lang.ruby.general

Subject: Re: Sibling rivalry and class variables

>>>>> "dblack" == dblack <dblack@xxxxxxxxxxxxxxxxxxxx> writes:

dblack> No need to redefine show_civ in the children, is there?

Hmmm ... I was sure I tried it without the redefinition and it didn't
work. But you are correct, they aren't needed.

BTW, I like the use of the attr_reader in the class. Good move.

--
-- Jim Weirich jweirich@xxxxxxx http://w3.one.net/~jweirich
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise