module Zeitwerk::Loader::Config
def on_unload(cpath = :ANY, &block)
-
(TypeError)
-
def on_unload(cpath = :ANY, &block) raise TypeError, "on_unload only accepts strings" unless cpath.is_a?(String) || cpath == :ANY mutex.synchronize do (on_unload_callbacks[cpath] ||= []) << block end end