Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Enumerator::ArithmeticSequence#step
aseq.step → num
enumerator.c
View on GitHub ↗
static inline VALUE
arith_seq_step(VALUE self)
{
return rb_ivar_get(self, id_step);
}
Returns the number that defines the common difference between two adjacent elements in this arithmetic sequence.