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
928 929 930 931 932 933 |
# File 'lib/binary_puzzle_solver/base.rb', line 928 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.
926 927 928 |
# File 'lib/binary_puzzle_solver/base.rb', line 926 def row_handle @row_handle end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
926 927 928 |
# File 'lib/binary_puzzle_solver/base.rb', line 926 def x @x end |
Instance Method Details
#get_cell ⇒ Object
943 944 945 |
# File 'lib/binary_puzzle_solver/base.rb', line 943 def get_cell() return row_handle.get_cell(x) end |
#get_char ⇒ Object
947 948 949 |
# File 'lib/binary_puzzle_solver/base.rb', line 947 def get_char() return get_cell().get_char() end |
#get_coord ⇒ Object
935 936 937 |
# File 'lib/binary_puzzle_solver/base.rb', line 935 def get_coord() return row_handle.get_coord(x) end |
#get_state ⇒ Object
939 940 941 |
# File 'lib/binary_puzzle_solver/base.rb', line 939 def get_state() return row_handle.get_state(x) end |