Class: IRC::Client::Clients

Inherits:
Hash
  • Object
show all
Defined in:
lib/failirc/client/clients.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



27
28
29
# File 'lib/failirc/client/clients.rb', line 27

def client
  @client
end

#serverObject (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