From: Alexandru Popescu Date: 2005-04-17T02:48:12+09:00 Subject: Re: self -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [quote Trans::on 4/16/2005 7:34 PM] > robert, > > i have one for you. tell me how to create a class whose subclasses DO > NOT inherit some particular state from. In other words I need: > > class Base > def self.state ; true ; end # or what have you > end > > class Derived < Base > end > > Derived.state #=> nil (was NOT inherited) > > how do i get something like that to work? > > t. > > > absolutely ruby newbie 2c: probably private will do this. - -- :alex |.::the_mindstorm::.| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) iD8DBQFCYV1WOCPjdDT2FEURAq1iAJ46ld2XYqKDXd1jVuJuvp+wEpnb+QCgsbf7 bTreChtwhdxKBXVlMGUpsK4= =cyQ2 -----END PGP SIGNATURE-----