Class: JustBackgammon::WrongPhaseError
- Inherits:
-
Object
- Object
- JustBackgammon::WrongPhaseError
- Defined in:
- lib/just_backgammon/errors/wrong_phase_error.rb
Overview
WrongPhaseError
A wrong phase error with a message
Instance Method Summary collapse
-
#initialize(message = "It is the wrong phase.") ⇒ WrongPhaseError
constructor
A new instance of WrongPhaseError.
Constructor Details
#initialize(message = "It is the wrong phase.") ⇒ WrongPhaseError
A new instance of WrongPhaseError.
Example:
# Instantiates a new WrongPhaseError
JustBackgammon::WrongPhaseError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/wrong_phase_error.rb', line 16 def initialize(="It is the wrong phase.") @message = end |