Class: JustChess::NotPlayersTurnError
- Defined in:
- lib/just_chess/errors/not_players_turn_error.rb
Overview
NotPlayersTurnError
A not players turn error with a message
Instance Method Summary collapse
-
#initialize(message = "It is not the player's turn yet.") ⇒ NotPlayersTurnError
constructor
New not players turn errors can be instantiated with.
Constructor Details
#initialize(message = "It is not the player's turn yet.") ⇒ NotPlayersTurnError
New not players turn errors can be instantiated with
Example:
# Instantiates a new NotPlayersTurnError
JustChess::NotPlayersTurnError.new("Custom Message")
18 19 20 |
# File 'lib/just_chess/errors/not_players_turn_error.rb', line 18 def initialize(="It is not the player's turn yet.") super end |