Class Index [+]

Quicksearch

Merb::BootLoader::Router

Loads the router file. This needs to happen after everything else is loaded while merb is starting up to ensure the router has everything it needs to run.

Public Class Methods

router_file() click to toggle source

Tries to find the router file.

Returns

String

The path to the router file if it exists, nil otherwise.

:api: private

      # File lib/merb-core/bootloader.rb, line 1107
1107:     def router_file
1108:       @router_file ||= begin
1109:         if File.file?(router = Merb.dir_for(:router) / Merb.glob_for(:router))
1110:           router
1111:         end
1112:       end
1113:     end
run() click to toggle source

load the router file

Returns

nil

:api: plugin

      # File lib/merb-core/bootloader.rb, line 1095
1095:     def run
1096:       Merb::BootLoader::LoadClasses.load_file(router_file) if router_file
1097: 
1098:       nil
1099:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.