Sha256: 005c0e197bea70915b80152014d9c577b28bed18d9cf24f648c0f379d850029b

Contents?: true

Size: 461 Bytes

Versions: 8

Compression:

Stored size: 461 Bytes

Contents

module JustBackgammon

  # = MovesPossibleError
  #
  # A moves possible error with a message
  class MovesPossibleError

    # A new instance of MovesPossibleError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new MovesPossibleError
    #   JustBackgammon::MovesPossibleError.new("Custom Message")
    def initialize(message="Moves are still possible.")
      @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/moves_possible_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/moves_possible_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/moves_possible_error.rb