Class: Fastr::Test::Application

Inherits:
Application show all
Includes:
Log
Defined in:
lib/fastr/test/application.rb

Constant Summary

Constants inherited from Application

Application::INIT_FILE, Application::SETTINGS_FILE

Constants included from Dispatch

Dispatch::PUBLIC_FOLDER

Instance Attribute Summary collapse

Attributes inherited from Application

#app_path, #plugins, #router, #settings

Instance Method Summary collapse

Methods included from Log

create_logger, included, level=

Methods inherited from Application

#initialize, #plugin_after_boot

Methods included from Dispatch

#dispatch, #dispatch_public, #do_dispatch, #plugin_after_dispatch, #plugin_before_dispatch, #setup_controller, #setup_controller_params

Constructor Details

This class inherits a constructor from Fastr::Application

Instance Attribute Details

#routeObject

Returns the value of attribute route.



6
7
8
# File 'lib/fastr/test/application.rb', line 6

def route
  @route
end

Instance Method Details

#bootObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/fastr/test/application.rb', line 8

def boot
  load_settings
  Fastr::Plugin.load(self)
  load_app_classes
  setup_router

  @booting = false
  
  plugin_after_boot
  app_init
end

#dispatch_controller(route, env) ⇒ Object



20
21
22
# File 'lib/fastr/test/application.rb', line 20

def dispatch_controller(route, env)
  super(self.route, env)
end