Module Sinatra::Environment
In: lib/sinatra/environment.rb

Methods

Public Instance methods

[Source]

   # File lib/sinatra/environment.rb, line 5
5:     def prepare
6:       Options.parse!(ARGV)
7:     end

[Source]

    # File lib/sinatra/environment.rb, line 9
 9:     def prepare_loggers(logger = Logger.new(open(Options.log_file, 'w')))
10:       [Server, EventContext, Event, Dispatcher].each do |klass|
11:         klass.logger = logger
12:       end
13:     end

[Validate]