Exception: SudokuSolver::InvalidProblemError
- Inherits:
-
Exception
- Object
- Exception
- SudokuSolver::InvalidProblemError
- Defined in:
- lib/sudoku_solver/solver.rb
Instance Attribute Summary collapse
-
#problem ⇒ Object
readonly
Returns the value of attribute problem.
Instance Method Summary collapse
-
#initialize(problem) ⇒ InvalidProblemError
constructor
A new instance of InvalidProblemError.
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
#problem ⇒ Object (readonly)
Returns the value of attribute problem.
5 6 7 |
# File 'lib/sudoku_solver/solver.rb', line 5 def problem @problem end |