class JustBackgammon::WrongPhaseError

WrongPhaseError

A wrong phase error with a message

Public Class Methods

new(message="It is the wrong phase.") click to toggle source

A new instance of WrongPhaseError.

@option [String] message

the message.

Example:

# Instantiates a new WrongPhaseError
JustBackgammon::WrongPhaseError.new("Custom Message")
# File lib/just_backgammon/errors/wrong_phase_error.rb, line 16
def initialize(message="It is the wrong phase.")
  @message = message
end