lib/maglev/utils/try.rb
# Calls the passed in block and then raises any errors. Useful for calling as a chain to the each method.
Calls the passed in block and then raises any errors. Useful for calling as a chain to the each method.
Calls the passed in block and then raises any errors . Useful for calling as a chain to the each method .
def ensure(&block)
      raise "catch or each must be called before ensure" unless @used
      block.call
      raise_if_failures
    end
def ensure ( & block ) raise "catch or each must be called before ensure" unless @used block . call raise_if_failures end
Calls the passed in block and then raises any errors.
Calls the passed in block and then raises any errors .
block
<not_specific>