Class: JustBackgammon::PiecesOnBarError

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

Overview

PiecesOnBarError

A pieces on bar error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "There are still pieces on the bar.") ⇒ PiecesOnBarError

A new instance of PiecesOnBarError.

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="There are still pieces on the bar.")
  @message = message
end