Sha256: d2e43863c7e5ca95b822bfc8417256caf38d8bb0db6d4bbf7fbd91819b03d286

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 Bytes

Contents

module JustBackgammon

  # = BlockedError
  #
  # A blocked error with a message
  class BlockedError

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