Class: Binary_Puzzle_Solver::CellHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/binary_puzzle_solver/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_handleObject (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

#xObject (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_cellObject



1109
1110
1111
# File 'lib/binary_puzzle_solver/base.rb', line 1109

def get_cell()
    return row_handle.get_cell(x)
end

#get_charObject



1113
1114
1115
# File 'lib/binary_puzzle_solver/base.rb', line 1113

def get_char()
    return get_cell().get_char()
end

#get_coordObject



1101
1102
1103
# File 'lib/binary_puzzle_solver/base.rb', line 1101

def get_coord()
    return row_handle.get_coord(x)
end

#get_stateObject



1105
1106
1107
# File 'lib/binary_puzzle_solver/base.rb', line 1105

def get_state()
    return row_handle.get_state(x)
end