Class: Binary_Puzzle_Solver::CellHandle
- Inherits:
-
Object
- Object
- Binary_Puzzle_Solver::CellHandle
- Defined in:
- lib/binary_puzzle_solver/base.rb
Instance Attribute Summary collapse
-
#row_handle ⇒ Object
readonly
Returns the value of attribute row_handle.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
Instance Method Summary collapse
- #get_cell ⇒ Object
- #get_char ⇒ Object
- #get_coord ⇒ Object
- #get_state ⇒ Object
-
#initialize(row_handle, x) ⇒ CellHandle
constructor
A new instance of CellHandle.
Constructor Details
#initialize(row_handle, x) ⇒ CellHandle
Returns a new instance of CellHandle.
1094 1095 1096 1097 1098 1099 |
# File 'lib/binary_puzzle_solver/base.rb', line 1094 def initialize (row_handle, x) @row_handle = row_handle @x = x return end |
Instance Attribute Details
#row_handle ⇒ Object (readonly)
Returns the value of attribute row_handle.
1092 1093 1094 |
# File 'lib/binary_puzzle_solver/base.rb', line 1092 def row_handle @row_handle end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
1092 1093 1094 |
# File 'lib/binary_puzzle_solver/base.rb', line 1092 def x @x end |
Instance Method Details
#get_cell ⇒ Object
1109 1110 1111 |
# File 'lib/binary_puzzle_solver/base.rb', line 1109 def get_cell() return row_handle.get_cell(x) end |
#get_char ⇒ Object
1113 1114 1115 |
# File 'lib/binary_puzzle_solver/base.rb', line 1113 def get_char() return get_cell().get_char() end |
#get_coord ⇒ Object
1101 1102 1103 |
# File 'lib/binary_puzzle_solver/base.rb', line 1101 def get_coord() return row_handle.get_coord(x) end |
#get_state ⇒ Object
1105 1106 1107 |
# File 'lib/binary_puzzle_solver/base.rb', line 1105 def get_state() return row_handle.get_state(x) end |