class JustBackgammon::NotPlayersTurnError

NotPlayersTurnError

A not player's turn error with a message

Public Class Methods

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

A new instance of NotPlayersTurnError.

@option [String] message

the message.

Example:

# Instantiates a new NotPlayersTurnError
JustBackgammon::NotPlayersTurnError.new("Custom Message")
# File lib/just_backgammon/errors/not_players_turn_error.rb, line 16
def initialize(message="It is not the player's turn yet.")
  @message = message
end