Class: JustBackgammon::MovesPossibleError
- Inherits:
-
Object
- Object
- JustBackgammon::MovesPossibleError
- Defined in:
- lib/just_backgammon/errors/moves_possible_error.rb
Overview
MovesPossibleError
A moves possible error with a message
Instance Method Summary collapse
-
#initialize(message = "Moves are still possible.") ⇒ MovesPossibleError
constructor
A new instance of MovesPossibleError.
Constructor Details
#initialize(message = "Moves are still possible.") ⇒ MovesPossibleError
A new instance of MovesPossibleError.
Example:
# Instantiates a new MovesPossibleError
JustBackgammon::MovesPossibleError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/moves_possible_error.rb', line 16 def initialize(="Moves are still possible.") @message = end |