Sha256: 2edc23d02dbd0ba023bc0c22dd452e55de5bae763bed7ce9ff6fe2b4cac1b99b
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
require 'just_xiangqi/errors/error' module JustXiangqi # = NoPieceError # # A no piece error with a message class NoPieceError < Error # New no piece errors can be instantiated with # # @option [String] message # the message to display. # # ==== Example: # # Instantiates a new NoPieceError # JustXiangqi::NoPieceError.new("Custom Message") def initialize(message="There is no piece to move.") super end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
just_xiangqi-0.1.0 | lib/just_xiangqi/errors/no_piece_error.rb |