Learn Ruby
Range
8.6
Lesson

to_a to convert range into array

A range can be converted into an array using to_a method.