class Minesweeper::Core::Explosives::MineCoordinates
Attributes
col_index[R]
row_index[R]
Public Class Methods
new(row_index, col_index)
click to toggle source
# File lib/minesweeper/core/explosives/mine_coordinates.rb, line 7 def initialize(row_index, col_index) @row_index = row_index @col_index = col_index end
Public Instance Methods
==(other)
click to toggle source
# File lib/minesweeper/core/explosives/mine_coordinates.rb, line 12 def ==(other) self.class == other.class && self.row_index == other.row_index && self.col_index == other.col_index end
Also aliased as: eql?
hash()
click to toggle source
# File lib/minesweeper/core/explosives/mine_coordinates.rb, line 19 def hash [@row_index, @col_index].hash end