module Zeitwerk::Loader::Config
def on_setup(&block)
If setup was already done, the block runs immediately.
Configure a block to be called after setup and on each reload.
def on_setup(&block) mutex.synchronize do on_setup_callbacks << block block.call if @setup end end