class JustBackgammon::MovesPossibleError

MovesPossibleError

A moves possible error with a message

Public Class Methods

new(message="Moves are still possible.") click to toggle source

A new instance of MovesPossibleError.

@option [String] message

the message.

Example:

# Instantiates a new MovesPossibleError
JustBackgammon::MovesPossibleError.new("Custom Message")
# File lib/just_backgammon/errors/moves_possible_error.rb, line 16
def initialize(message="Moves are still possible.")
  @message = message
end