class JustShogi::InvalidMoveError
InvalidMoveError
¶ ↑
An invalid move error with a message
Public Class Methods
new(message="Move is invalid.")
click to toggle source
New invalid move errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new InvalidMoveError JustShogi::InvalidMoveError.new("Custom Message")
Calls superclass method
JustShogi::Error::new
# File lib/just_shogi/errors/invalid_move_error.rb, line 18 def initialize(message="Move is invalid.") super end