Sha256: 2fbfb11df1fd24d5b8e0857d9fd58ae7e62dce94dc602870381f88cf46b07e8e
Contents?: true
Size: 520 Bytes
Versions: 11
Compression:
Stored size: 520 Bytes
Contents
require 'just_chess/errors/error' module JustChess # = InvalidPromotionError # # An invalid promotion error with a message class InvalidPromotionError < Error # New invalid promotion errors can be instantiated with # # @option [String] message # the message to display. # # ==== Example: # # Instantiates a new InvalidPromotionError # JustChess::InvalidPromotionError.new("Custom Message") def initialize(message="Promotion is invalid.") super end end end
Version data entries
11 entries across 11 versions & 1 rubygems