Class: Async::DebugSelector::MonitorProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/async/debug.rb

Instance Method Summary collapse

Constructor Details

#initialize(monitor, selector) ⇒ MonitorProxy

Returns a new instance of MonitorProxy.



26
27
28
29
# File 'lib/async/debug.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(*args, &block) ⇒ Object



36
37
38
# File 'lib/async/debug.rb', line 36

def method_missing(*args, &block)
	@monitor.send(*args)
end

Instance Method Details

#closeObject



31
32
33
34
# File 'lib/async/debug.rb', line 31

def close
	@selector.deregister(@monitor.io)
	@monitor.close
end

#respond_to?(*args) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/async/debug.rb', line 40

def respond_to?(*args)
	@monitor.respond_to?(*args)
end