Sha256: 13b248fd34d538044206b47f996e2c98c281c215e41b0329c53a08a2c750cf67

Contents?: true

Size: 461 Bytes

Versions: 8

Compression:

Stored size: 461 Bytes

Contents

module JustBackgammon

  # = DiceMismatchError
  #
  # A dice mismatch error with a message
  class DiceMismatchError

    # A new instance of DiceMismatchError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new DiceMismatchError
    #   JustBackgammon::DiceMismatchError.new("Custom Message")
    def initialize(message="Move does not match dice rolls.")
      @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/dice_mismatch_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/dice_mismatch_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/dice_mismatch_error.rb