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 | ||
| abs2_spec.rb | ||
| abs_spec.rb | ||
| angle_spec.rb | ||
| arg_spec.rb | ||
| ceil_spec.rb | ||
| coerce_spec.rb | ||
| comparison_spec.rb | ||
| conj_spec.rb | ||
| conjugate_spec.rb | ||
| denominator_spec.rb | ||
| div_spec.rb | ||
| divmod_spec.rb | ||
| eql_spec.rb | ||
| fdiv_spec.rb | ||
| finite_spec.rb | ||
| floor_spec.rb | ||
| i_spec.rb | ||
| imag_spec.rb | ||
| imaginary_spec.rb | ||
| infinite_spec.rb | ||
| integer_spec.rb | ||
| magnitude_spec.rb | ||
| modulo_spec.rb | ||
| negative_spec.rb | ||
| nonzero_spec.rb | ||
| numerator_spec.rb | ||
| numeric_spec.rb | ||
| phase_spec.rb | ||
| polar_spec.rb | ||
| positive_spec.rb | ||
| quo_spec.rb | ||
| real_spec.rb | ||
| rect_spec.rb | ||
| rectangular_spec.rb | ||
| remainder_spec.rb | ||
| round_spec.rb | ||
| singleton_method_added_spec.rb | ||
| step_spec.rb | ||
| to_c_spec.rb | ||
| to_int_spec.rb | ||
| truncate_spec.rb | ||
| uminus_spec.rb | ||
| uplus_spec.rb | ||
| zero_spec.rb | ||