Afficher un message
Vieux 06/11/2007, 11h11   #2
Shuaib Zahda
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: why return gives error when used with ? :

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/.

  Réponse avec citation
 
Page generated in 0,04243 seconds with 9 queries