Class: Battlesnake::Base
- Inherits:
-
Object
- Object
- Battlesnake::Base
- Defined in:
- lib/battlesnake/base.rb
Overview
Base class for “model” classes - _Game, Board, Snake, Location,_ etc.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Whether both locations have the same coordinates.
Instance Method Details
#==(other) ⇒ Boolean
Whether both locations have the same coordinates.
11 12 13 |
# File 'lib/battlesnake/base.rb', line 11 def ==(other) other.is_a?(self.class) && self.as_json == other.as_json end |