Class: IRC::Server::Clients
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(server, *args) ⇒ Clients
constructor
A new instance of Clients.
- #inspect ⇒ Object
- #send(*args) ⇒ Object
Constructor Details
#initialize(server, *args) ⇒ Clients
Returns a new instance of Clients.
29 30 31 32 33 |
# File 'lib/failirc/server/clients.rb', line 29 def initialize (server, *args) @server = server super(*args) end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
27 28 29 |
# File 'lib/failirc/server/clients.rb', line 27 def server @server end |
Instance Method Details
#inspect ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/failirc/server/clients.rb', line 41 def inspect result = "" each_value {|client| result << " #{client.inspect}" } return result[1, result.length] end |
#send(*args) ⇒ Object
35 36 37 38 39 |
# File 'lib/failirc/server/clients.rb', line 35 def send (*args) each_value {|user| user.send(*args) } end |