instance method
first_clean_frame
Ruby on Rails 8.1.2
Since v8.1.2Signature
first_clean_frame(kind = :silent)
Returns the first clean frame of the caller’s backtrace, or nil.
Frames are strings.
Parameters
-
kindopt = :silent
Source
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 94
def first_clean_frame(kind = :silent)
caller_location_skipped = false
Thread.each_caller_location do |location|
unless caller_location_skipped
caller_location_skipped = true
next
end
frame = clean_frame(location, kind)
return frame if frame
end
end
Defined in activesupport/lib/active_support/backtrace_cleaner.rb line 94
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::BacktraceCleaner