Sha256: 60bcee7a1948ffe8f81f92139acf2e5982cac2f55d6dfee9ddebf332bd44bac2

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

module JustXiangqi

  # = Error
  #
  # An error with a message
  class Error
    
    # New errors can be instantiated with
    #
    # @option [String] message
    #   the message to display.
    #
    # ==== Example:
    #   # Instantiates a new Error
    #   JustXiangqi::Error.new('Custom Message')
    def initialize(message='Genertic Error')
      @message = message 
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
just_xiangqi-0.1.0 lib/just_xiangqi/errors/error.rb