Merge pull request #30100 from kirs/doc-reloader
Document public hooks in AS::Reloader
This commit is contained in:
commit
c39ed435eb
@ -28,14 +28,17 @@ class Reloader < ExecutionWrapper
|
||||
|
||||
define_callbacks :class_unload
|
||||
|
||||
# Registers a callback that will run once at application startup and every time the code is reloaded.
|
||||
def self.to_prepare(*args, &block)
|
||||
set_callback(:prepare, *args, &block)
|
||||
end
|
||||
|
||||
# Registers a callback that will run immediately before the classes are unloaded.
|
||||
def self.before_class_unload(*args, &block)
|
||||
set_callback(:class_unload, *args, &block)
|
||||
end
|
||||
|
||||
# Registers a callback that will run immediately after the classes are unloaded.
|
||||
def self.after_class_unload(*args, &block)
|
||||
set_callback(:class_unload, :after, *args, &block)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user