Class: IRC::Client::Clients
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #add(client) ⇒ Object
-
#initialize(server, *args) ⇒ Clients
constructor
A new instance of Clients.
Constructor Details
#initialize(server, *args) ⇒ Clients
Returns a new instance of Clients.
29 30 31 32 33 34 |
# File 'lib/failirc/client/clients.rb', line 29 def initialize (server, *args) @client = server.client @server = server super(*args) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
27 28 29 |
# File 'lib/failirc/client/clients.rb', line 27 def client @client end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
27 28 29 |
# File 'lib/failirc/client/clients.rb', line 27 def server @server end |
Instance Method Details
#add(client) ⇒ Object
36 37 38 |
# File 'lib/failirc/client/clients.rb', line 36 def add (client) self[client.nick] = client end |