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