From: Alfredo Garcia lopez Date: 2008-10-22T22:23:22+09:00 Subject: Re: Include code (conditionally) in a class and its subclasses Sorry,this is wrong > > module ProductExtension > def precio > old_price+30 > end > alias_method :old_price, :price > alias_method :price, :old_price > end It would be ... module ProductExtension def new_price old_price+30 end alias_method :old_price, :price alias_method :price, :new_price end -- Posted via http://www.ruby-forum.com/.