Class: JustBackgammon::DiceMismatchError

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

Overview

DiceMismatchError

A dice mismatch error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Move does not match dice rolls.") ⇒ DiceMismatchError

A new instance of DiceMismatchError.

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Move does not match dice rolls.")
  @message = message
end