More than 5 years have passed since last update.
puts [*1...10]
1 2 3 4 5 6 7 8 9 となる。
Register as a new user and use Qiita more conveniently