Class: JustBackgammon::PiecesOnBarError
- Inherits:
-
Object
- Object
- JustBackgammon::PiecesOnBarError
- Defined in:
- lib/just_backgammon/errors/pieces_on_bar_error.rb
Overview
PiecesOnBarError
A pieces on bar error with a message
Instance Method Summary collapse
-
#initialize(message = "There are still pieces on the bar.") ⇒ PiecesOnBarError
constructor
A new instance of PiecesOnBarError.
Constructor Details
#initialize(message = "There are still pieces on the bar.") ⇒ PiecesOnBarError
A new instance of PiecesOnBarError.
Example:
# Instantiates a new PiecesOnBarError
JustBackgammon::PiecesOnBarError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/pieces_on_bar_error.rb', line 16 def initialize(="There are still pieces on the bar.") @message = end |