To inspect the array : inspect « Array « Ruby






To inspect the array


months = Array.new(12)
puts months.inspect

# or:

p months

 








Related examples in the same category

1.Reverse the Order of the Array's Elements