Sha256: 8b7a52156aa7d195f0666760f00bd435e5fb118f5c91af24617888355996f54a

Contents?: true

Size: 434 Bytes

Versions: 8

Compression:

Stored size: 434 Bytes

Contents

module JustBackgammon

  # = EmptyPointError
  #
  # An empty point error with a message
  class EmptyPointError

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