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")

Parameters:

  • [String] (Hash)

    a customizable set of options



18
19
20
# File 'lib/just_chess/errors/causes_check_error.rb', line 18

def initialize(message="That move would put the king in check.")
  super
end