Method: Praxis::Application#initialize
- Defined in:
- lib/praxis/application.rb
#initialize ⇒ Application
Returns a new instance of Application.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/praxis/application.rb', line 32 def initialize @controllers = Set.new @resource_definitions = Set.new @error_handler = ErrorHandler.new @validation_handler = ValidationHandler.new @router = Router.new(self) @builder = Rack::Builder.new @app = nil @bootloader = Bootloader.new(self) @file_layout = nil @plugins = Hash.new @handlers = Hash.new @loaded_files = Set.new @config = Config.new @root = nil @logger = Logger.new(STDOUT) end |