class JustBackgammon::PointOwnershipError
PointOwnershipError
¶ ↑
A point ownership error with a message
Public Class Methods
new(message="Point is not owned by player.")
click to toggle source
A new instance of PointOwnershipError
.
@option [String] message
the message.
Example:¶ ↑
# Instantiates a new PointOwnershipError JustBackgammon::PointOwnershipError.new("Custom Message")
# File lib/just_backgammon/errors/point_ownership_error.rb, line 16 def initialize(message="Point is not owned by player.") @message = message end