Class: JustBackgammon::EmptyPointError

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

Overview

EmptyPointError

An empty point error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Point is empty.") ⇒ EmptyPointError

A new instance of EmptyPointError.

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Point is empty.")
  @message = message
end