class JustCheckers::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 x co-ordinate.

Example:

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