Can i abbreviate this expression to fit on one line?

Hey there,

i am wondering if there is a way i can fit this on one line

if x > 23: next
end

thanks

On 6/1/07, shawn bright [email protected] wrote:

i am wondering if there is a way i can fit this on one line

if x > 23: next
end

next if x > 23

On 6/1/07, shawn bright [email protected] 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

cool, thanks
shawn

Even closer to the OP’s original syntax is:

if x > 23 then next end

Dave

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs