On Sun, Jan 30, 2011 at 5:57 AM, Dan L. <danissoepiclike / gmail.com> wrote:
> thanks :)
Here's an alternative way using case statement that I personally find nicer:
case answer
when "yes"
# yes processing code
when "no"
# no processing code
else
$stderr.puts "Wrong answer: #{answer}"
end
Cheers
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/