Class: Irc::Bot::MessageMapper::FriendlyFailure

Inherits:
Failure show all
Defined in:
lib/rbot/messagemapper.rb

Overview

failures with a friendly message

Constant Summary

Constants inherited from Failure

Irc::Bot::MessageMapper::Failure::FRIENDLY, Irc::Bot::MessageMapper::Failure::STRING

Instance Attribute Summary

Attributes inherited from Failure

#message, #template

Instance Method Summary collapse

Methods inherited from Failure

#initialize, #to_s

Constructor Details

This class inherits a constructor from Irc::Bot::MessageMapper::Failure

Instance Method Details

#friendlyObject



78
79
80
# File 'lib/rbot/messagemapper.rb', line 78

def friendly
  self.class::FRIENDLY rescue FRIENDLY
end