Method: Sentry::StacktraceInterface::Frame#set_context
- Defined in:
- lib/sentry/interfaces/stacktrace.rb
permalink #set_context(linecache, context_lines) ⇒ Object
[View source]
62 63 64 65 66 67 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 62 def set_context(linecache, context_lines) return unless abs_path @pre_context, @context_line, @post_context = \ linecache.get_file_context(abs_path, lineno, context_lines) end |