A UserList is an ArrayOf User
s We derive it from NetmaskList, which allows us to inherit any
special NetmaskList method
Create a new UserList, optionally filling it with the elements from the Array argument fed to it.
# File lib/rbot/irc.rb, line 1087 def initialize(ar=[]) super(ar) @element_class = User end
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