Module: Kernel
- Defined in:
- lib/proxymachine.rb
Instance Method Summary collapse
- #proxy(&block) ⇒ Object
- #proxy_connect_error(&block) ⇒ Object
- #proxy_inactivity_error(&block) ⇒ Object
Instance Method Details
#proxy(&block) ⇒ Object
118 119 120 |
# File 'lib/proxymachine.rb', line 118 def proxy(&block) ProxyMachine.set_router(block) end |
#proxy_connect_error(&block) ⇒ Object
122 123 124 |
# File 'lib/proxymachine.rb', line 122 def proxy_connect_error(&block) ProxyMachine.set_connect_error_callback(&block) end |
#proxy_inactivity_error(&block) ⇒ Object
126 127 128 |
# File 'lib/proxymachine.rb', line 126 def proxy_inactivity_error(&block) ProxyMachine.set_inactivity_error_callback(&block) end |