lib/mazes/cartesian/mask.rb
# Public: Iterate across the Mask by rows of mask entries.
#
# Yields an Array of Booleans to an implicit block.
Iterate across the Mask by rows of mask entries.
Yields an Array of Booleans to an implicit block.
Iterate across the Mask by rows of mask entries . Yields an Array of Booleans to an implicit block .
def each_row
			@y.times do |y|
				ret = []
				@x.times do |x|
					ret << self[x, y]
				end
				yield ret
			end
		end
def each_row @y . times do | y | ret = [ ] @x . times do | x | ret << self [ x , y ] end yield ret end end
Public: Iterate across the Mask by rows of mask entries.
Public : Iterate across the Mask by rows of mask entries .