Class: Bullet::Registry::CallStack

Inherits:
Base
  • Object
show all
Defined in:
lib/bullet/registry/call_stack.rb

Instance Attribute Summary

Attributes inherited from Base

#registry

Instance Method Summary collapse

Methods inherited from Base

#[], #delete, #each, #include?, #initialize, #select

Constructor Details

This class inherits a constructor from Bullet::Registry::Base

Instance Method Details

#add(key) ⇒ Object

remembers found association backtrace



7
8
9
# File 'lib/bullet/registry/call_stack.rb', line 7

def add(key)
  @registry[key] ||= Thread.current.backtrace
end