Sha256: b9b51667d8b197e64dceea3abc3b2018c2b7a26842091cbad4eb81c3af28dc84

Contents?: true

Size: 476 Bytes

Versions: 8

Compression:

Stored size: 476 Bytes

Contents

module JustBackgammon

  # = NotPlayersTurnError
  #
  # A not player's turn error with a message
  class NotPlayersTurnError

    # A new instance of NotPlayersTurnError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new NotPlayersTurnError
    #   JustBackgammon::NotPlayersTurnError.new("Custom Message")
    def initialize(message="It is not the player's turn yet.")
      @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/not_players_turn_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/not_players_turn_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/not_players_turn_error.rb