Method: Metro::SetupHandlers::LoadGameFiles#execute_watcher!

Defined in:
lib/setup_handlers/load_game_files.rb

#execute_watcher!Object

Note:

an exception is raised if the watcher is not prepared every time this is called.

The watcher will now mark all the constants that it has watched being loaded as unloadable. Doing so exhausts the list of constants found so the watcher will be empty.



93
94
95
# File 'lib/setup_handlers/load_game_files.rb', line 93

def execute_watcher!
  watcher.new_constants.each { |constant| unloadable constant }
end