Subject: Re: more newbie help with classes and methods please
From: "simonh" <simonharrison fastmail.co.uk>
Date: Wed, 19 Jul 2006 19:10:05 +0900
References: 202514202622202647202653202657202658202661
In-reply-to: 202661
would this be an example of using case:
case favourite_colour
when white
print 'white'
when blue
print 'blue'
when orange
print 'orange'
end
instead of
var = favourite_colour
if white
print 'white'
elsif blue
print 'blue'
...
end