Class: JustBackgammon::PointOwnershipError
- Inherits:
-
Object
- Object
- JustBackgammon::PointOwnershipError
- Defined in:
- lib/just_backgammon/errors/point_ownership_error.rb
Overview
PointOwnershipError
A point ownership error with a message
Instance Method Summary collapse
-
#initialize(message = "Point is not owned by player.") ⇒ PointOwnershipError
constructor
A new instance of PointOwnershipError.
Constructor Details
#initialize(message = "Point is not owned by player.") ⇒ PointOwnershipError
A new instance of PointOwnershipError.
Example:
# Instantiates a new PointOwnershipError
JustBackgammon::PointOwnershipError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/point_ownership_error.rb', line 16 def initialize(="Point is not owned by player.") @message = end |