Class: Irc::NamesMessage

Inherits:
BasicUserMessage show all
Defined in:
lib/rbot/message.rb

Overview

class to manage NAME replies

Instance Attribute Summary collapse

Attributes inherited from BasicUserMessage

#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time

Instance Method Summary collapse

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 = "") ⇒ NamesMessage

Returns a new instance of NamesMessage.



557
558
559
560
# File 'lib/rbot/message.rb', line 557

def initialize(bot, server, source, target, message="")
  super(bot, server, source, target, message)
  @users = []
end

Instance Attribute Details

#usersObject

Returns the value of attribute users.



556
557
558
# File 'lib/rbot/message.rb', line 556

def users
  @users
end

Instance Method Details

#inspectObject



562
563
564
565
# File 'lib/rbot/message.rb', line 562

def inspect
  fields = ' users=' << users.inspect
  super(fields)
end