Subject: is there an nicer way for this expression?
From: Remco Hh <remco huijdts.nl>
Date: Tue, 20 Nov 2007 21:38:19 +0900
hi,
perhaps a stupid question.
i do this a lot: if (foo.bar==1 or foo.bar==2)
can i make this expression shorter and nicer?,
something like if (foo.bar=1,2), which of course doesn't work :)
regards,
remco
--
Posted via http://www.ruby-forum.com/.