class JustShogi::TwoFuhyouInFileError
TwoFuhyouInFileError
¶ ↑
A two fuhyou in file error with a message
Public Class Methods
new(message="Cannot place two fuhyou in the same file.")
click to toggle source
New two fuhyou in file errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new TwoFuhyouInFileError JustShogi::TwoFuhyouInFileError.new("Custom Message")
Calls superclass method
JustShogi::Error::new
# File lib/just_shogi/errors/two_fuhyou_in_file_error.rb, line 18 def initialize(message="Cannot place two fuhyou in the same file.") super end