Exception: SudokuSolver::InvalidProblemError

Inherits:
Exception
  • Object
show all
Defined in:
lib/sudoku_solver/solver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(problem) ⇒ InvalidProblemError

Returns a new instance of InvalidProblemError.



6
7
8
# File 'lib/sudoku_solver/solver.rb', line 6

def initialize(problem)
  @problem = problem
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



5
6
7
# File 'lib/sudoku_solver/solver.rb', line 5

def problem
  @problem
end