Sha256: 3df07bce7ddd2e73392d30096fb69485c7e02d469d5268257c240f631675f9a8

Contents?: true

Size: 442 Bytes

Versions: 8

Compression:

Stored size: 442 Bytes

Contents

module JustBackgammon

  # = BearOffError
  #
  # A bear off error with a message
  class BearOffError

    # A new instance of BearOffError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new BearOffError
    #   JustBackgammon::BearOffError.new("Custom Message")
    def initialize(message="Cannot bear off while pieces are not home.")
      @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/bear_off_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/bear_off_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/bear_off_error.rb