method

clean_locations

clean_locations(locations, kind = :silent)
public

Given an array of Thread::Backtrace::Location objects, returns an array with the clean ones:

clean_locations = backtrace_cleaner.clean_locations(caller_locations)

Filters and silencers receive strings as usual. However, the path attributes of the locations in the returned array are the original, unfiltered ones, since locations are immutable.