Convert to Array « Range « Ruby






1.Convert range to array
2.Range class offers a simple way to convert a range into an array with to_a.