module Betfair::Utils

Public Instance Methods

attempt(enum) { || ... } click to toggle source
# File lib/betfair/utils.rb, line 3
def attempt(enum)
  exception = nil
  enum.each do
    begin
      return yield
    rescue Exception => e
      exception = e
      next
    end
  end
  raise exception
end