Method: JustChess::NotPlayersTurnError#initialize
- Defined in:
- lib/just_chess/errors/not_players_turn_error.rb
#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 |