class JustShogi::NoPieceError
NoPieceError
¶ ↑
A no piece error with a message
Public Class Methods
new(message="There is no piece to move.")
click to toggle source
New no piece errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new NoPieceError JustShogi::NoPieceError.new("Custom Message")
Calls superclass method
JustShogi::Error::new
# File lib/just_shogi/errors/no_piece_error.rb, line 18 def initialize(message="There is no piece to move.") super end