class JustChess::CausesCheckError
CausesCheckError
¶ ↑
A causes check error with a message
Public Class Methods
new(message="That move would put the king in check.")
click to toggle source
New causes check errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new CausesCheckError JustChess::CausesCheckError.new("Custom Message")
Calls superclass method
# File lib/just_chess/errors/causes_check_error.rb, line 18 def initialize(message="That move would put the king in check.") super end