Class: Irc::UserList
- Inherits:
-
NetmaskList
- Object
- Array
- ArrayOf
- NetmaskList
- Irc::UserList
- Defined in:
- lib/rbot/irc.rb
Overview
A UserList is an ArrayOf User
s We derive it from NetmaskList, which allows us to inherit any special NetmaskList method
Instance Attribute Summary
Attributes inherited from ArrayOf
Instance Method Summary collapse
-
#initialize(ar = []) ⇒ UserList
constructor
Create a new UserList, optionally filling it with the elements from the Array argument fed to it.
-
#nicks ⇒ Object
Convenience method: convert the UserList to a list of nicks.
Methods inherited from NetmaskList
Methods inherited from ArrayOf
#&, #+, #-, #<<, #concat, #downcase, #insert, #inspect, #push, #replace, #unshift, #valid?, #validate, #will_accept?, #|
Methods inherited from Array
#delete_one, #pick_one, #shuffle, #shuffle!
Constructor Details
Instance Method Details
#nicks ⇒ Object
Convenience method: convert the UserList to a list of nicks. The indices are preserved
1095 1096 1097 |
# File 'lib/rbot/irc.rb', line 1095 def nicks self.map { |user| user.nick } end |