class JustShogi::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:

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