Class: JustBackgammon::BlockedError
- Inherits:
-
Object
- Object
- JustBackgammon::BlockedError
- Defined in:
- lib/just_backgammon/errors/blocked_error.rb
Overview
BlockedError
A blocked error with a message
Instance Method Summary collapse
-
#initialize(message = "Point blocked by opponent.") ⇒ BlockedError
constructor
A new instance of BlockedError.
Constructor Details
#initialize(message = "Point blocked by opponent.") ⇒ BlockedError
A new instance of BlockedError.
Example:
# Instantiates a new BlockedError
JustBackgammon::BlockedError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/blocked_error.rb', line 16 def initialize(="Point blocked by opponent.") = end |