class JustCheckers::EmptySquareError

EmptySquareError

An empty square error with a message

Public Class Methods

new(message="Square is empty.") click to toggle source

New empty square errors can be instantiated with

@option [String] message

the x co-ordinate.

Example:

# Instantiates a new EmptySquareError
JustCheckers::EmptySquareError.new("Custom Message")
Calls superclass method
# File lib/just_checkers/errors/empty_square_error.rb, line 18
def initialize(message="Square is empty.")
  super
end