Methods

Class/Module Index [+]

Quicksearch

Bundler::SafeCatch::Internal

Public Class Methods

catch(tag, &block) click to toggle source
# File lib/bundler/safe_catch.rb, line 58
def self.catch(tag, &block)
  @recurse_count += 1
  if SAFE_RECURSE_EVERY >= 0 && @recurse_count % SAFE_RECURSE_EVERY == 0
    SAFE_RECURSE_CLASS.new(&block).send(SAFE_RECURSE_START)
  else
    block.call
  end
rescue Result.matcher(tag)
  $!.value
end
throw(tag, value = nil) click to toggle source
# File lib/bundler/safe_catch.rb, line 69
def self.throw(tag, value = nil)
  raise Result.new(tag, value)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.