From: Jason Persampieri Date: 2002-12-02T16:59:52+09:00 Subject: Re: [FAQ] [Revised] What do some of Ruby's symbols mean? (exist? filename) ? open(filename) : open(default_filename) --- Gavin Sinclair wrote: > > ----- Original Message ----- > From: "Jim Weirich" > > > > On Sun, 2002-12-01 at 10:01, Gavin Sinclair wrote: > > > Thanks for the instant feedback. And apologies > for the offensive > late-night > > > manager humour. If only I'd limited it to my > workplace... . [...] > > > > > > ?: > > > Ternary decision operator, as in C. For > example: > > > return (level == DEBUG) ? "" : > detailed_info > > > > This still seems confusing, as I would expect > detailed information to be > > returned in debug mode. > > > > Whoops, my mistake. It's a stupid example anyway. > Can anyone think of a > simple real-life example of using the ternary > operator!? > > Gavin > >