Class Merb::Slices::Loader
In: lib/merb-slices.rb
Parent: Merb::BootLoader

Load Slice classes before the app‘s classes are loaded.

This allows the application to override/merge any slice-level classes.

Methods

Public Class methods

App-level paths for all loaded slices.

@return <Array[String]> Any app-level paths that have been loaded.

Load classes from given paths - using path/glob pattern.

@param *paths <Array> Array of paths to load classes from - may contain glob pattern

Load a single file and its requirements.

@param file<String> The file to load.

Reload the router - takes all_slices into account to load slices at runtime.

Remove a single file and the classes loaded by it from ObjectSpace.

@param file<String> The file to load.

Gather all slices from search path and gems and load their classes.

Slice-level paths for all loaded slices.

@return <Array[String]> Any slice-level paths that have been loaded.

[Validate]