Class: JustBackgammon::BlockedError

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

Overview

BlockedError

A blocked error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Point blocked by opponent.") ⇒ BlockedError

A new instance of BlockedError.

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Point blocked by opponent.")
  @message = message
end