Class: Method

Inherits:
Object
  • Object
show all
Defined in:
lib/retry-handler.rb

Instance Method Summary collapse

Instance Method Details

#retry(*args) ⇒ Object



58
59
60
61
62
63
# File 'lib/retry-handler.rb', line 58

def retry(*args)
  options = args.last.is_a?(::Hash) ? args.pop : {}
  RetryHandler.retry_handler(options) do
    self.call(*args)
  end
end