File: call_stack.rb

package info (click to toggle)
ruby-bullet 7.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: ruby: 6,133; javascript: 57; sh: 27; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Bullet
  module Registry
    class CallStack < Base
      # remembers found association backtrace
      def add(key)
        @registry[key] = Thread.current.backtrace
      end
    end
  end
end