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

**URL:** <https://www.ruby-forum.com/t/pull-request-39-range-cover-max-min-and-updated-rubyspec-core-range/210695>\
**Category:** IronRuby\
**Created:** [August 15, 2011, 1:57am UTC](https://www.ruby-forum.com/t/pull-request-39-range-cover-max-min-and-updated-rubyspec-core-range/210695 "2011-08-15T01:57:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 15, 2011, 1:57am UTC](https://www.ruby-forum.com/t/pull-request-39-range-cover-max-min-and-updated-rubyspec-core-range/210695/1 "2011-08-15T01:57:28Z")

</div>

Updated rubyspec ‘core/range’ to latest version

Implemented:

- 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  
(1…5).step(1.4).to\_a

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 😃

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.
