Class: Sudoku::SolutionSet::Choice

Inherits:
Object
  • Object
show all
Defined in:
lib/sudoku/solution_set/choice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



4
5
6
# File 'lib/sudoku/solution_set/choice.rb', line 4

def column
  @column
end

#rowObject (readonly)

Returns the value of attribute row.



4
5
6
# File 'lib/sudoku/solution_set/choice.rb', line 4

def row
  @row
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/sudoku/solution_set/choice.rb', line 4

def value
  @value
end