Class/Module 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
def router_file
  @router_file ||= begin
    if File.file?(router = Merb.dir_for(:router) / Merb.glob_for(:router))
      router
    end
  end
end
run() click to toggle source

load the router file

Returns

nil

:api: plugin

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

  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.