Class: JustChess::NoPieceError
- Defined in:
- lib/just_chess/errors/no_piece_error.rb
Overview
NoPieceError
A no piece error with a message
Instance Method Summary collapse
-
#initialize(message = "There is no piece to move.") ⇒ NoPieceError
constructor
New no piece errors can be instantiated with.
Constructor Details
#initialize(message = "There is no piece to move.") ⇒ NoPieceError
New no piece errors can be instantiated with
Example:
# Instantiates a new NoPieceError
JustChess::NoPieceError.new("Custom Message")
18 19 20 |
# File 'lib/just_chess/errors/no_piece_error.rb', line 18 def initialize(="There is no piece to move.") super end |