class JustBackgammon::PiecesOnBarError
PiecesOnBarError
¶ ↑
A pieces on bar error with a message
Public Class Methods
new(message="There are still pieces on the bar.")
click to toggle source
A new instance of PiecesOnBarError
.
@option [String] message
the message.
Example:¶ ↑
# Instantiates a new PiecesOnBarError JustBackgammon::PiecesOnBarError.new("Custom Message")
# File lib/just_backgammon/errors/pieces_on_bar_error.rb, line 16 def initialize(message="There are still pieces on the bar.") @message = message end