Class: Irc::NamesMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::NamesMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to manage NAME replies
Instance Attribute Summary collapse
-
#users ⇒ Object
Returns the value of attribute users.
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 = "") ⇒ NamesMessage
constructor
A new instance of NamesMessage.
- #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 = "") ⇒ NamesMessage
Returns a new instance of NamesMessage.
618 619 620 621 |
# File 'lib/rbot/message.rb', line 618 def initialize(bot, server, source, target, ="") super(bot, server, source, target, ) @users = [] end |
Instance Attribute Details
#users ⇒ Object
Returns the value of attribute users.
617 618 619 |
# File 'lib/rbot/message.rb', line 617 def users @users end |
Instance Method Details
#inspect ⇒ Object
623 624 625 626 |
# File 'lib/rbot/message.rb', line 623 def inspect fields = ' users=' << users.inspect super(fields) end |