instance method first_clean_location

Ruby on Rails 8.1.2

Since v8.1.2

Signature

first_clean_location(kind = :silent)

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.

Parameters

kind opt = :silent
Source
# File activesupport/lib/active_support/backtrace_cleaner.rb, line 113
      def first_clean_location(kind = :silent)
        caller_location_skipped = false

        Thread.each_caller_location do |location|
          unless caller_location_skipped
            caller_location_skipped = true
            next
          end

          return location if clean_frame(location, kind)
        end
      end

Defined in activesupport/lib/active_support/backtrace_cleaner.rb line 113 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::BacktraceCleaner

Type at least 2 characters to search.

↑↓ navigate · open · esc close