#!/usr/bin/env rubyclass Array def array_of_ten (1..10).to_a endendarr = Array.newten = arr.array_of_tenp ten # => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]