class JustBackgammon::BearOffError

BearOffError

A bear off error with a message

Public Class Methods

new(message="Cannot bear off while pieces are not home.") click to toggle source

A new instance of BearOffError.

@option [String] message

the message.

Example:

# Instantiates a new BearOffError
JustBackgammon::BearOffError.new("Custom Message")
# File lib/just_backgammon/errors/bear_off_error.rb, line 16
def initialize(message="Cannot bear off while pieces are not home.")
  @message = message
end