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.
26
27
28
29
|
# File 'lib/async/debug/monitor.rb', line 26
def initialize(monitor, selector)
@monitor = monitor
@selector = selector
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*arguments, &block) ⇒ Object
36
37
38
|
# File 'lib/async/debug/monitor.rb', line 36
def method_missing(*arguments, &block)
@monitor.send(*arguments)
end
|
Instance Method Details
#close ⇒ Object
31
32
33
34
|
# File 'lib/async/debug/monitor.rb', line 31
def close
@selector.deregister(@monitor.io)
@monitor.close
end
|
#inspect ⇒ Object
44
45
46
|
# File 'lib/async/debug/monitor.rb', line 44
def inspect
"\#<#{self.class} io=#{@monitor.io.inspect} interests=#{@monitor.interests.inspect} readiness=#{@monitor.readiness.inspect}>"
end
|
#respond_to?(*arguments) ⇒ Boolean
40
41
42
|
# File 'lib/async/debug/monitor.rb', line 40
def respond_to?(*arguments)
@monitor.respond_to?(*arguments)
end
|