Class: Sudoku::SolutionSet::Choice
- Inherits:
-
Object
- Object
- Sudoku::SolutionSet::Choice
- Defined in:
- lib/sudoku/solution_set/choice.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(column, row, value) ⇒ Choice
constructor
A new instance of Choice.
Constructor Details
#initialize(column, row, value) ⇒ Choice
Returns a new instance of Choice.
6 7 8 |
# File 'lib/sudoku/solution_set/choice.rb', line 6 def initialize(column, row, value) @column, @row, @value = column, row, value end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
4 5 6 |
# File 'lib/sudoku/solution_set/choice.rb', line 4 def column @column end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
4 5 6 |
# File 'lib/sudoku/solution_set/choice.rb', line 4 def row @row end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/sudoku/solution_set/choice.rb', line 4 def value @value end |