class JustBackgammon::EmptyBarError
EmptyBarError
¶ ↑
An empty bar error with a message
Public Class Methods
new(message="No pieces owned by player on bar.")
click to toggle source
A new instance of EmptyBarError
.
@option [String] message
the message.
Example:¶ ↑
# Instantiates a new EmptyBarError JustBackgammon::EmptyBarError.new("Custom Message")
# File lib/just_backgammon/errors/empty_bar_error.rb, line 16 def initialize(message="No pieces owned by player on bar.") @message = message end