|
Re: Sibling rivalry and class variables: msg#01197lang.ruby.general
>>>>> "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> |
|---|---|---|
| Previous by Date: | 诚邀代理业务,利润可达40%!全新jsp asp.net php虚拟主机, 时创网络 |
|---|---|
| Next by Date: | Re: Sibling rivalry and class variables, dblack |
| Previous by Thread: | Re: Sibling rivalry and class variables, dblack |
| Next by Thread: | Re: Sibling rivalry and class variables, Nikodemus Siivola |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |