Exception: Twisty::TwistyError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/twisty/error.rb

Overview

Super-class of GameError and PlayError. Do not use directly

Direct Known Subclasses

GameError, PlayError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s) ⇒ TwistyError

Initialiser

s

(String) Contents of TwistyError.message



20
21
22
# File 'lib/twisty/error.rb', line 20

def initialize(s)
  @message = s
end

Instance Attribute Details

#messageObject (readonly)

(String) Message detailing the exception



15
16
17
# File 'lib/twisty/error.rb', line 15

def message
  @message
end