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