Class: JustBackgammon::PointOwnershipError

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

Overview

PointOwnershipError

A point ownership error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Point is not owned by player.") ⇒ PointOwnershipError

A new instance of PointOwnershipError.

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Point is not owned by player.")
  @message = message
end