Sha256: 8fe077b0c39da49d6f7fe5c78cf27c48de3b842b162ac8738498f2b5abcf387a
Contents?: true
Size: 470 Bytes
Versions: 11
Compression:
Stored size: 470 Bytes
Contents
require 'just_chess/errors/error' module JustChess # = NoPieceError # # A no piece error with a message class NoPieceError < Error # New no piece errors can be instantiated with # # @option [String] message # the message to display. # # ==== Example: # # Instantiates a new NoPieceError # JustChess::NoPieceError.new("Custom Message") def initialize(message="There is no piece to move.") super end end end
Version data entries
11 entries across 11 versions & 1 rubygems