Module Sinatra::Loader
In: lib/sinatra/loader.rb

Methods

Public Instance methods

load_file(*files)

Alias for load_files

[Source]

    # File lib/sinatra/loader.rb, line 15
15:     def load_files(*files)
16:       files = files.flatten
17:       files = files.first if files.first.is_a? Set
18: 
19:       files.each do |file| 
20:         file = File.expand_path(file)
21:         load file
22:         loaded_files << file
23:       end
24:     end

[Source]

    # File lib/sinatra/loader.rb, line 27
27:     def loaded_files
28:       @loaded_files ||= Set.new
29:     end

[Source]

    # File lib/sinatra/loader.rb, line 7
 7:     def reload!
 8:       silence_warnings do
 9:         EventManager.reset!
10:         load_files loaded_files
11:         load $0
12:       end
13:     end

[Validate]