Class: JustBackgammon::DiceMismatchError
- Inherits:
-
Object
- Object
- JustBackgammon::DiceMismatchError
- Defined in:
- lib/just_backgammon/errors/dice_mismatch_error.rb
Overview
DiceMismatchError
A dice mismatch error with a message
Instance Method Summary collapse
-
#initialize(message = "Move does not match dice rolls.") ⇒ DiceMismatchError
constructor
A new instance of DiceMismatchError.
Constructor Details
#initialize(message = "Move does not match dice rolls.") ⇒ DiceMismatchError
A new instance of DiceMismatchError.
Example:
# Instantiates a new DiceMismatchError
JustBackgammon::DiceMismatchError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/dice_mismatch_error.rb', line 16 def initialize(="Move does not match dice rolls.") = end |