mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
This commit introduces new core class Enumerator::ArithmeticSequence. Enumerator::ArithmeticSequence is a subclass of Enumerator, and represents a number generator of an arithmetic sequence. After this commit, Numeric#step and Range#step without blocks returned an ArithmeticSequence object instead of an Enumerator. This class introduces the following incompatibilities: - You can create a zero-step ArithmeticSequence, and its size is not ArgumentError, but Infinity. - You can create a negative-step ArithmeticSequence from a range. [ruby-core:82816] [Feature #13904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
|---|---|---|
| .. | ||
| fixtures | ||
| shared | ||
| begin_spec.rb | ||
| bsearch_spec.rb | ||
| case_compare_spec.rb | ||
| cover_spec.rb | ||
| dup_spec.rb | ||
| each_spec.rb | ||
| end_spec.rb | ||
| eql_spec.rb | ||
| equal_value_spec.rb | ||
| exclude_end_spec.rb | ||
| first_spec.rb | ||
| hash_spec.rb | ||
| include_spec.rb | ||
| initialize_spec.rb | ||
| inspect_spec.rb | ||
| last_spec.rb | ||
| max_spec.rb | ||
| member_spec.rb | ||
| min_spec.rb | ||
| new_spec.rb | ||
| range_spec.rb | ||
| size_spec.rb | ||
| step_spec.rb | ||
| to_a_spec.rb | ||
| to_s_spec.rb | ||