I'm modeling a chessboard and was wondering if there is a populate a multidimensional array using #new. I want each 'row' in the array to be initially populated with a '*'
ie. [[ '*', '*', '*', '*', '*', '*', '*', '*'], [ '*', '*', '*', '*', '*', '*', '*', '*'], etc... ]
empty_frame = Array.new(8){[]} #Can you use code block to fill here?
Or do i need to iterate through each 'row' to populate it?