[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: can i abbreviate this expression to fit on one line?

Jano Svitok

6/1/2007 2:27:00 PM

On 6/1/07, shawn bright <nephish@gmail.com> wrote:
> Hey there,
>
> i am wondering if there is a way i can fit this on one line
>
> if x > 23: next
> end
>
> thanks
>

either: (the : delimiter is deprecated)

if x > 23 ; next ; end

or:

next if x > 23