class ILoveSudoku::StraightLineCreator
Attributes
lines[R]
Public Class Methods
new(cell_matrix)
click to toggle source
# File lib/straight_line_creator.rb, line 6 def initialize(cell_matrix) @lines = create_lines(cell_matrix) end
Private Instance Methods
create_lines(cell_matrix)
click to toggle source
# File lib/straight_line_creator.rb, line 13 def create_lines(cell_matrix) cell_matrix.each_with_object([]) do |row, arr| arr << BlockOfNine.new_from(row) end end