Sha256: db82821d7dca3096896f4111ea7e95e5905a12c1885c23c5235658a7b908690e
Contents?: true
Size: 528 Bytes
Versions: 11
Compression:
Stored size: 528 Bytes
Contents
require 'just_chess/errors/error' module JustChess # = MovedIntoCheckError # # A moved into check error with a message class MovedIntoCheckError < Error # New moved into check errors can be instantiated with # # @option [String] message # the message to display. # # ==== Example: # # Instantiates a new MovedIntoCheckError # JustChess::MovedIntoCheckError.new("Custom Message") def initialize(message="This move would leave the king in check.") super end end end
Version data entries
11 entries across 11 versions & 1 rubygems