From: Robert Klemme Date: 2008-06-10T23:56:46+09:00 Subject: Re: something wrong with case/when syntax 2008/6/10 Jed Kowalski : > and now, the last (i think) problem: > the change(x) method doesn't want to work, can You tell me why? > > BTW can somebody check for other errors? > > class Drink > > attr_accessor :price,:ammount,:name,:bought > > def initialize (cen, ile, nn) > $price=cen > $ammount=ile > $name=nn > $bought=0 > end This gives me the creeps: you are modifying global variables like instance variables. That's definitively a don't do. Regards robert -- use.inject do |as, often| as.you_can - without end