Class: Guard::Zeitwerk
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Zeitwerk
- Defined in:
- lib/guard/zeitwerk.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Zeitwerk
constructor
A new instance of Zeitwerk.
- #run_all ⇒ Object
- #run_on_additions(paths) ⇒ Object
- #run_on_modifications(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Zeitwerk
Returns a new instance of Zeitwerk.
11 12 13 14 |
# File 'lib/guard/zeitwerk.rb', line 11 def initialize( = {}) super require [:require] if .key? :require end |
Instance Method Details
#run_all ⇒ Object
21 22 23 |
# File 'lib/guard/zeitwerk.rb', line 21 def run_all # Called when running all Guards end |
#run_on_additions(paths) ⇒ Object
25 26 27 |
# File 'lib/guard/zeitwerk.rb', line 25 def run_on_additions(paths) process(paths) end |
#run_on_modifications(paths) ⇒ Object
29 30 31 |
# File 'lib/guard/zeitwerk.rb', line 29 def run_on_modifications(paths) process(paths) end |
#start ⇒ Object
16 17 18 19 |
# File 'lib/guard/zeitwerk.rb', line 16 def start warn_zero_loaders detect_and_initialize_rails end |
#stop ⇒ Object
33 34 35 |
# File 'lib/guard/zeitwerk.rb', line 33 def stop # Called when Guard is stopped end |