method

first_clean_location

first_clean_location(kind = :silent)
public

Returns the first clean location of the caller’s call stack, or nil.

Locations are Thread::Backtrace::Location objects. Since they are immutable, their path attributes are the original ones, but filters are applied internally so silencers can still rely on them.