Class: JustCheckers::EmptySquareError
- Defined in:
- lib/just_checkers/errors/empty_square_error.rb
Overview
EmptySquareError
An empty square error with a message
Instance Method Summary collapse
-
#initialize(message = "Square is empty.") ⇒ EmptySquareError
constructor
New empty square errors can be instantiated with.
Constructor Details
#initialize(message = "Square is empty.") ⇒ EmptySquareError
New empty square errors can be instantiated with
Example:
# Instantiates a new EmptySquareError
JustCheckers::EmptySquareError.new("Custom Message")
18 19 20 |
# File 'lib/just_checkers/errors/empty_square_error.rb', line 18 def initialize(="Square is empty.") super end |