Subject: Re: why return gives error when used with ? :
From: Shuaib Zahda <shuaib.zahda gmail.com>
Date: Tue, 6 Nov 2007 19:11:51 +0900
References: 277652
In-reply-to: 277652
Oops I forgot to ask
which one is faster
if x == 5
return true
else
return false
end
or the conditional operator ? :
x == 5 ? true : false
--
Posted via http://www.ruby-forum.com/.