Files
developer-roadmap/roadmaps/ruby/content/ranges@OHq_172eTWaVlxES7Ccfc.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

703 B

Ranges

Ranges in Ruby are used to create a sequence of values. They are defined using two endpoints, which can be numbers, characters, or any objects that can be compared using the <=> operator. Ranges can be inclusive (including the last value) or exclusive (excluding the last value), denoted by .. and ... respectively. They are commonly used for iterating over a sequence, creating subsets of arrays, and checking if a value falls within a specific interval.

Visit the following resources to learn more: