Borges::Application (Class)

In: lib/Borges/RequestHandler/Application.rb
Parent: Object

An Application holds the information necessary to start a new Session using this application, and where in the Borges URL namespace this application lives.


name  [R]  This application’s name.
preferences  [R]  This application’s preferences.
session_class  [R]  This application’s Session class.

Public Class methods

Creates a new Application that lives at path, and initializes the new application’s preferences.

Public Instance methods

Creates a new Session for the request and passes the req to the session for handling.

Changes the session class to klass, updating this application’s preferences from the new session class’ default preferences.