Method: JustChess::CausesCheckError#initialize
- Defined in:
- lib/just_chess/errors/causes_check_error.rb
#initialize(message = "That move would put the king in check.") ⇒ CausesCheckError
New causes check errors can be instantiated with
Example:
# Instantiates a new CausesCheckError
JustChess::CausesCheckError.new("Custom Message")
18 19 20 |
# File 'lib/just_chess/errors/causes_check_error.rb', line 18 def initialize(="That move would put the king in check.") super end |