Jesús Gabriel y Galán
1/20/2009 5:02:00 PM
On Tue, Jan 20, 2009 at 5:48 PM, Michael Morin <uzimonkey@gmail.com> wrote:
> Jes=FAs Gabriel y Gal=E1n wrote:
>>
>> Ruby 1.8 doesn't have an odd? method per se. Rail's ActiveSupport adds
>> one to Integer. The code is quite simple, so I wouldn't require active
>> support only for this:
>
> Ruby 1.8.7 has odd?
>
> uzimonkey@WOPRJr:~$ ruby -v
> ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
> uzimonkey@WOPRJr:~$ ruby -e 'puts 1.odd?'
> true
Doh, you are right ! I was checking 1.8.6.
Jesus.