From: Chad Perrin Date: 2012-05-18T07:59:25+09:00 Subject: Re: why is else without rescue useless with statement modifiers? On Fri, May 18, 2012 at 07:36:06AM +0900, Jan E. wrote: > > or directly return the result of the comparison: > > def sane? > "a" == "a" > end > > This will, however, return a boolean instead of a string. This works if you want a string: def sane? ('a' == 'a').to_s end -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]