class Irc::UserList
A UserList is an ArrayOf User
s We derive it from NetmaskList, which allows us to inherit any
special NetmaskList method
Public Class Methods
new(ar=[])
click to toggle source
Create a new UserList, optionally filling it with the elements from the Array argument fed to it.
Calls superclass method
Irc::NetmaskList.new
# File lib/rbot/irc.rb, line 1087 def initialize(ar=[]) super(ar) @element_class = User end
Public Instance Methods
nicks()
click to toggle source
Convenience method: convert the UserList to a list of nicks. The indices are preserved
# File lib/rbot/irc.rb, line 1095 def nicks self.map { |user| user.nick } end