Class: Async::Debug::Monitor
- Inherits:
-
Object
- Object
- Async::Debug::Monitor
show all
- Defined in:
- lib/async/debug/monitor.rb
Instance Method Summary
collapse
Constructor Details
#initialize(monitor, selector) ⇒ Monitor
Returns a new instance of Monitor.
24
25
26
27
|
# File 'lib/async/debug/monitor.rb', line 24
def initialize(monitor, selector)
@monitor = monitor
@selector = selector
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
34
35
36
|
# File 'lib/async/debug/monitor.rb', line 34
def method_missing(*args, &block)
@monitor.send(*args)
end
|
Instance Method Details
#close ⇒ Object
29
30
31
32
|
# File 'lib/async/debug/monitor.rb', line 29
def close
@selector.deregister(@monitor.io)
@monitor.close
end
|
#inspect ⇒ Object
42
43
44
|
# File 'lib/async/debug/monitor.rb', line 42
def inspect
"\#<#{self.class} io=#{@monitor.io.inspect} interests=#{@monitor.interests.inspect} readiness=#{@monitor.readiness.inspect}>"
end
|
#respond_to?(*args) ⇒ Boolean
38
39
40
|
# File 'lib/async/debug/monitor.rb', line 38
def respond_to?(*args)
@monitor.respond_to?(*args)
end
|