End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Enumerator::ArithmeticSequence#exclude_end?
aseq.exclude_end? → true or false
enumerator.c
View on GitHub ↗
static inline VALUE
arith_seq_exclude_end(VALUE self)
{
return rb_ivar_get(self, id_exclude_end);
}
Returns true if this arithmetic sequence excludes its end value.