Class: Irc::ModeChangeMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::ModeChangeMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to manage mode changes
Instance Attribute Summary collapse
-
#modes ⇒ Object
Returns the value of attribute modes.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, target, message = "") ⇒ ModeChangeMessage
constructor
A new instance of ModeChangeMessage.
- #inspect ⇒ Object
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
#initialize(bot, server, source, target, message = "") ⇒ ModeChangeMessage
Returns a new instance of ModeChangeMessage.
542 543 544 545 546 |
# File 'lib/rbot/message.rb', line 542 def initialize(bot, server, source, target, ="") super(bot, server, source, target, ) @address = (source == @bot.myself) @modes = [] end |
Instance Attribute Details
#modes ⇒ Object
Returns the value of attribute modes.
541 542 543 |
# File 'lib/rbot/message.rb', line 541 def modes @modes end |
Instance Method Details
#inspect ⇒ Object
548 549 550 551 |
# File 'lib/rbot/message.rb', line 548 def inspect fields = ' modes=' << modes.inspect super(fields) end |