Class: EventMachine::IRC::SynchronizedStore
- Inherits:
-
Object
- Object
- EventMachine::IRC::SynchronizedStore
show all
- Defined in:
- lib/eventmachine/irc/server.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of SynchronizedStore.
23
24
25
26
|
# File 'lib/eventmachine/irc/server.rb', line 23
def initialize
@store = {}
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
28
29
30
31
32
|
# File 'lib/eventmachine/irc/server.rb', line 28
def method_missing(name,*args)
@store.__send__(name,*args)
end
|
Instance Method Details
#each_value ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'lib/eventmachine/irc/server.rb', line 34
def each_value
@store.each_value {|u|
yield u
}
end
|
#keys ⇒ Object
44
45
46
47
48
|
# File 'lib/eventmachine/irc/server.rb', line 44
def keys
@store.keys
end
|