-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Sporky023
|
||
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 | ||
|
What is meant by "every time the code is reloaded" here? Does this refer to page refresh? Does it refer to a reload process triggered by a
reload!
call in a console?My context for asking is that I'm trying to understand this line of the pull request at: https://github.com/teohm/require_reloader/pull/7/files#diff-10cbf865555f200a581ee4b1b09ed2e4R84
Thank you.