From: 7stud -- Date: 2009-04-30T15:33:53+09:00 Subject: Re: Can this code be more succinct 7stud -- wrote: > > ...but then instead of having to look up the format of a case statement, > you could just write: > > val = "red" > > if val == "blue" > puts "blue" > elsif val == "red" > abort "code red" > else > puts "not recognized" > end > > puts "program terminating normally" ...but then it is easier to type "when" than "elseifif". :) -- Posted via http://www.ruby-forum.com/.