Class: JustBackgammon::MovesPossibleError

Inherits:
Object
  • Object
show all
Defined in:
lib/just_backgammon/errors/moves_possible_error.rb

Overview

MovesPossibleError

A moves possible error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Moves are still possible.") ⇒ MovesPossibleError

A new instance of MovesPossibleError.

Example:

# Instantiates a new MovesPossibleError
JustBackgammon::MovesPossibleError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



16
17
18
# File 'lib/just_backgammon/errors/moves_possible_error.rb', line 16

def initialize(message="Moves are still possible.")
  @message = message
end