Merb::BootLoader
Load Slice classes before the app’s classes are loaded.
This allows the application to override/merge any slice-level classes.
App-level paths for all loaded slices.
@return
# File lib/merb-slices.rb, line 71 71: def app_paths 72: paths = [] 73: Merb::Slices.each_slice { |slice| paths += slice.collected_app_paths } 74: paths 75: end
Load classes from given paths - using path/glob pattern.
@param *paths
# File lib/merb-slices.rb, line 50 50: def load_classes(*paths) 51: Merb::BootLoader::LoadClasses.load_classes paths 52: end
Load a single file and its requirements.
@param file
# File lib/merb-slices.rb, line 36 36: def load_file(file) 37: Merb::BootLoader::LoadClasses.load_file file 38: end
Reload the router - takes all_slices into account to load slices at runtime.
# File lib/merb-slices.rb, line 55 55: def reload_router! 56: Merb::BootLoader::Router.reload! 57: end
Remove a single file and the classes loaded by it from ObjectSpace.
@param file
# File lib/merb-slices.rb, line 43 43: def remove_classes_in_file(file) 44: Merb::BootLoader::LoadClasses.remove_classes_in_file file 45: end
Whether slices from search paths should be registered automatically. Defaults to true if not explicitly set.
# File lib/merb-slices.rb, line 81 81: def auto_register? 82: Merb::Plugins.config[:merb_slices][:auto_register] || !Merb::Plugins.config[:merb_slices].key?(:auto_register) 83: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.