class Sentry::Backtrace::Line

def self.parse(unparsed_line, in_app_pattern)

Returns:
  • (Line) - The parsed backtrace line

Parameters:
  • unparsed_line (String) -- The raw line from +caller+ or some backtrace
def self.parse(unparsed_line, in_app_pattern)
  ruby_match = unparsed_line.match(RUBY_INPUT_FORMAT)
  if ruby_match
    _, file, number, method = ruby_match.to_a
    file.sub!(/\.class$/, RB_EXTENSION)
    module_name = nil
  else
    java_match = unparsed_line.match(JAVA_INPUT_FORMAT)
    _, module_name, method, file, number = java_match.to_a
  end
  new(file, number, method, module_name, in_app_pattern)
end