From: trader9 Date: 2008-07-11T20:02:06+09:00 Subject: Re: Beginner: if statement in one line? ------=_Part_17655_3612339.1215774355551 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline if 5== 5 then puts '5' end On Fri, Jul 11, 2008 at 4:25 PM, Chris Chris wrote: > Hi, > > a simple question, however I did not find an answer for this: > > How can I put a statement like > > if 5 == 5 > puts '5' > end > > in one line? > > Just writing them all statements together in one line didn't work, > and a syntax like if 5 == 5 {puts '5'} end didn't either. > > Thanks for your help. > > CHeers, CHris > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_17655_3612339.1215774355551--