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