lib/mazes/cartesian/space.rb
# Public: Access the Space by successive rows.
#
# Note: Internally, the Cells are stored by columns, then by rows, so this is
# not as simple as simply iterating across the top level of the @space
# container. Instead, this assembles an array by selecting the same row from all
# columns, then yields the new array.
#
# Yields an Array of Cells to an implicit block.
Access the Space by successive rows.
Note: Internally, the Cells are stored by columns, then by rows, so this is
not as simple as simply iterating across the top level of the @space
container. Instead, this assembles an array by selecting the same row from all
columns, then yields the new array.

Yields an Array of Cells to an implicit block.
Access the Space by successive rows . Note : Internally the Cells are stored by columns then by rows so this is not as simple as simply iterating across the top level of the @space container . Instead this assembles an array by selecting the same row from all columns then yields the new array . Yields an Array of Cells to an implicit block .
def each_row
			@y.times do |row|
				y = []
				@x.times do |col|
					y << self[col, row]
				end
				yield y
			end
		end
def each_row @y . times do | row | y = [ ] @x . times do | col | y << self [ col , row ] end yield y end end
Public: Access the Space by successive rows.
Public : Access the Space by successive rows .