Method: JustChess::NoPieceError#initialize

Defined in:
lib/just_chess/errors/no_piece_error.rb

#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(message="There is no piece to move.")
  super
end