2 -d Arrays in Ruby. We can specify any type while initializing arrays. For example, String: $ irb > Array.new(10, 'hello') => ["hello", "hello", "hello", ...
確定! 回上一頁