Class: IRC::Server::Clients

Inherits:
Hash
  • Object
show all
Defined in:
lib/failirc/server/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
# File 'lib/failirc/server/clients.rb', line 29

def initialize (server, *args)
    @server = server

    super(*args)
end

Instance Attribute Details

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

#inspectObject



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