class JustShogi::DroppedIntoCheckError
DroppedIntoCheckError
¶ ↑
A dropped into check error with a message
Public Class Methods
new(message="This move would leave the ou in check.")
click to toggle source
New moved into check errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new DroppedIntoCheckError JustShogi::DroppedIntoCheckError.new("Custom Message")
Calls superclass method
# File lib/just_shogi/errors/dropped_into_check_error.rb, line 18 def initialize(message="This move would leave the ou in check.") super end