Sha256: 35a8283cd031bf495c55b686c3422142ec38afca82719ab7fa16ce21ab3abc92

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

module JustBackgammon

  # = PointOwnershipError
  #
  # A point ownership error with a message
  class PointOwnershipError

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