From: Robert Oliver Date: 2006-10-27T08:57:41+09:00 Subject: Re: simple math question ------=_Part_39150_14543972.1161907057957 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/26/06, Wilson Bilkovich wrote: > > class Fixnum > def even? > (self % 2).zero? > end > def odd? > !even? > end > end > > I normally do that, but I remember somewhere reading that it was bad form to not include the return statement. I'm not sure where this was. Is anyone familiar with this syntax quasi-rule? -- Robert W. Oliver II President, OCS Solutions, Inc. - Web Hosting and Development http://www.ocssolutions.com/ Toll-Free Phone - 1-800-672-8415 OCS Ruby Forums - http://www.rubyforums.com/ My Blog - http://www.rwoliver.com/ ------=_Part_39150_14543972.1161907057957--