Class: SuperPoller::RetryWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/super_poller/retry_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ RetryWrapper

Returns a new instance of RetryWrapper.



2
3
4
# File 'lib/super_poller/retry_wrapper.rb', line 2

def initialize(&block)
  @builder = block
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object (protected)



15
16
17
18
19
20
# File 'lib/super_poller/retry_wrapper.rb', line 15

def method_missing(*args)
  wrapped_queue.send(*args)
rescue RuntimeError => e
  reset_wrapped_queue!
  raise
end