Class: Merb::Slices::Loader

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

app_paths load_classes load_file reload_router! remove_classes_in_file run slice_paths

### Public Class methods

app_paths()

App-level paths for all loaded slices.

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

load_classes(*paths)

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

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

load_file(file)

Load a single file and its requirements.

@param file<String> The file to load.

reload_router!()

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

remove_classes_in_file(file)

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

@param file<String> The file to load.

run()

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

slice_paths()

Slice-level paths for all loaded slices.

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

[Validate]