Exception: Halunke::HUnknownMessage
- Includes:
- Gem::Text
- Defined in:
- lib/halunke/herror.rb
Instance Attribute Summary
Attributes inherited from HError
#message, #source_code_position
Instance Method Summary collapse
-
#initialize(receiver, message_name, receivable_messages, source_code_position) ⇒ HUnknownMessage
constructor
A new instance of HUnknownMessage.
Constructor Details
#initialize(receiver, message_name, receivable_messages, source_code_position) ⇒ HUnknownMessage
Returns a new instance of HUnknownMessage.
18 19 20 21 22 23 24 25 |
# File 'lib/halunke/herror.rb', line 18 def initialize(receiver, , , source_code_position) = [ "#{receiver} received the message `#{}`. It doesn't know how to handle that.", did_you_mean(, ) ].join("\n") super(, source_code_position) end |