Exception: Exception
- Defined in:
- lib/chatty_exceptions.rb
Instance Attribute Summary collapse
-
#initial_message ⇒ Object
readonly
Returns the value of attribute initial_message.
Instance Method Summary collapse
-
#initialize(message) ⇒ Exception
constructor
A new instance of Exception.
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ Exception
Returns a new instance of Exception.
8 9 10 11 |
# File 'lib/chatty_exceptions.rb', line 8 def initialize() @initial_message = super end |
Instance Attribute Details
#initial_message ⇒ Object (readonly)
Returns the value of attribute initial_message.
6 7 8 |
# File 'lib/chatty_exceptions.rb', line 6 def @initial_message end |
Instance Method Details
#to_s ⇒ Object
13 14 15 16 |
# File 'lib/chatty_exceptions.rb', line 13 def to_s Mac::TTS.say(@initial_message, :victoria) @initial_message end |