Class: IRC::Server::Links

Inherits:
ThreadSafeHash show all
Defined in:
lib/failirc/server/links.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ThreadSafeHash

#[], #[]=, #delete

Methods inherited from CaseInsensitiveHash

#[], #[]=, #delete

Constructor Details

#initialize(server) ⇒ Links

Returns a new instance of Links.



30
31
32
33
34
# File 'lib/failirc/server/links.rb', line 30

def initialize (server)
    @server = server

    super()
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



28
29
30
# File 'lib/failirc/server/links.rb', line 28

def server
  @server
end

Instance Method Details

#inspectObject



36
37
38
39
40
41
42
43
44
# File 'lib/failirc/server/links.rb', line 36

def inspect
    result = ""

    each {|link|
        result << " #{link.inspect}"
    }

    return result[1, result.length]
end