Method: Sentry::StacktraceInterface::Frame#initialize

Defined in:
lib/sentry/interfaces/stacktrace.rb

#initialize(project_root, line, strip_backtrace_load_path = true) ⇒ Frame

Returns a new instance of Frame.

[View source]

30
31
32
33
34
35
36
37
38
39
40
# File 'lib/sentry/interfaces/stacktrace.rb', line 30

def initialize(project_root, line, strip_backtrace_load_path = true)
  @project_root = project_root
  @strip_backtrace_load_path = strip_backtrace_load_path

  @abs_path = line.file
  @function = line.method if line.method
  @lineno = line.number
  @in_app = line.in_app
  @module = line.module_name if line.module_name
  @filename = compute_filename
end