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, #prefixed?, #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.
588 589 590 591 592 |
# File 'lib/rbot/message.rb', line 588 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.
587 588 589 |
# File 'lib/rbot/message.rb', line 587 def modes @modes end |
Instance Method Details
#inspect ⇒ Object
594 595 596 597 |
# File 'lib/rbot/message.rb', line 594 def inspect fields = ' modes=' << modes.inspect super(fields) end |