Class: JustBackgammon::BearOffError
- Inherits:
-
Object
- Object
- JustBackgammon::BearOffError
- Defined in:
- lib/just_backgammon/errors/bear_off_error.rb
Overview
BearOffError
A bear off error with a message
Instance Method Summary collapse
-
#initialize(message = "Cannot bear off while pieces are not home.") ⇒ BearOffError
constructor
A new instance of BearOffError.
Constructor Details
#initialize(message = "Cannot bear off while pieces are not home.") ⇒ BearOffError
A new instance of BearOffError.
Example:
# Instantiates a new BearOffError
JustBackgammon::BearOffError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/bear_off_error.rb', line 16 def initialize(="Cannot bear off while pieces are not home.") = end |