Sha256: af4583fed0a5355a3bdd14097f95c093538690e4dfaa90dba949fae30ddc17c9

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

module JustBackgammon

  # = PiecesOnBarError
  #
  # A pieces on bar error with a message
  class PiecesOnBarError

    # A new instance of PiecesOnBarError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new PiecesOnBarError
    #   JustBackgammon::PiecesOnBarError.new("Custom Message")
    def initialize(message="There are still pieces on the bar.")
      @message = message
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
just_backgammon-1.1.0 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/pieces_on_bar_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/pieces_on_bar_error.rb