Forum: IronRuby Pull request #39 - Range :cover?, :max, :min and updated rubyspec 'core/range'

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B3068fb9bae93b2889ffc73feb1b3195?d=identicon&s=25 Enrico Sada (Guest)
on 2011-08-15 01:57
(Received via mailing list)
Updated rubyspec 'core/range' to latest version


- Range#cover?
- Range#min
- Range#max

refactored Range#each and Range#step for share same code for iterate
range values.

Code style should be ok now.

Anyway Range#step with Float argument and integer range, ex

MRI => [1.0, 2.4, 3.8]
ironruby => [1, 2, 3, 4, 5] (coerced to int)

Also (1..2).step(0.4) is not working:

MRI => [1.0, 1.4, 1.8]
ironruby => exception argument can't be zero

I added a pull request for rubyspec/rubyspec, so next time :D

Also, is ok if a add a Resharper 5.1 a code style sharing file? is
shared per solution (Solution/Ruby.sln) so will be easier to everyone
check (and reformat code)  ironruby code style.
This topic is locked and can not be replied to.