From: "Michael T. Richter" Date: 2008-07-16T13:50:23+09:00 Subject: Re: check my class --=-1rGOgWjBtlQLWpJtrTRf Content-Type: text/plain Content-Transfer-Encoding: 7bit On Wed, 2008-07-16 at 13:18 +0900, Srijayanth Sridhar wrote: > > def cash > > return @cash > > end > > def salesTax > > return @salesTaxPayable > > end > > > > Try this instead: > > > > attr_reader :cash, :salesTax > > > > attr_reader :cash, :salesTaxPayable > alias :salesTax salesTaxPayable Doh! Good catch. I didn't see that the accessor was differently named from the member. -- Michael T. Richter (GoogleTalk: ttmrichter@gmail.com) Politics is the art of looking for trouble, finding it whether it exists or not, diagnosing it incorrectly, and applying the wrong remedy. (Ernest Benn) --=-1rGOgWjBtlQLWpJtrTRf--