lib/conwayrb/cells.rb
# Accepts a block, which can use the |x, y| coordinates of the cell
Accepts a block, which can use the |x, y| coordinates of the cell
Accepts a block which can use the |x y| coordinates of the cell
def every_cell
      (0...@size_y).each do |y|
        (0...@size_x).each do |x|
          yield(x, y) if block_given?
        end
      end
    end
def every_cell ( 0 ... @size_y ) . each do | y | ( 0 ... @size_x ) . each do | x | yield ( x , y ) if block_given? end end end
Accepts a block, which can use the |x, y| coordinates of the cell
Accepts a block which can use the |x y| coordinates of the cell