class Airbrake::Filters::GemRootFilter

@api private
Replaces paths to gems with a placeholder.

def call(notice)

@macro call_filter
def call(notice)
  return unless defined?(Gem)
  notice[:errors].each do |error|
    Gem.path.each do |gem_path|
      error[:backtrace].each do |frame|
        # If the frame is unparseable, then 'file' is nil, thus nothing to
        # filter (all frame's data is in 'function' instead).
        next unless (file = frame[:file])
        frame[:file] = file.sub(/\A#{gem_path}/, GEM_ROOT_LABEL)
      end
    end
  end
end

def initialize

def initialize
  @weight = 120
end