module YARD::CodeObjects::NamespaceMapper

def on_invalidate(&block)

the cache is cleared by invalidation.
Adds a callback that triggers when a new separator is registered or
def on_invalidate(&block)
  (@invalidation_callbacks ||= []).push(block)
end