class JustChess::NotPlayersTurnError

NotPlayersTurnError

A not players turn error with a message

Public Class Methods

new(message="It is not the player's turn yet.") click to toggle source

New not players turn errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new NotPlayersTurnError
JustChess::NotPlayersTurnError.new("Custom Message")
Calls superclass method JustChess::Error::new
# File lib/just_chess/errors/not_players_turn_error.rb, line 18
def initialize(message="It is not the player's turn yet.")
  super
end