Class: Guard::Zeitwerk

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/zeitwerk.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Zeitwerk

Returns a new instance of Zeitwerk.



11
12
13
14
# File 'lib/guard/zeitwerk.rb', line 11

def initialize(options = {})
  super
  require options[:require] if options.key? :require
end

Instance Method Details

#run_allObject



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

#startObject



16
17
18
19
# File 'lib/guard/zeitwerk.rb', line 16

def start
  warn_zero_loaders
  detect_and_initialize_rails
end

#stopObject



33
34
35
# File 'lib/guard/zeitwerk.rb', line 33

def stop
  # Called when Guard is stopped
end