class JustCheckers::PieceMustCaptureError

PieceMustCaptureError

A piece must capture error with a message

Public Class Methods

new(message="Another piece must capture first.") click to toggle source

New piece must capture errors can be instantiated with

@option [String] message

the x co-ordinate.

Example:

# Instantiates a new PieceMustCaptureError
JustCheckers::PieceMustCaptureError.new("Custom Message")
Calls superclass method JustCheckers::Error::new
# File lib/just_checkers/errors/piece_must_capture_error.rb, line 18
def initialize(message="Another piece must capture first.")
  super
end