# File lib/shotgun.rb, line 31 31: def self.after_fork(&block) 32: @after_fork ||= [] 33: @after_fork << block if block 34: @after_fork 35: end
# File lib/shotgun.rb, line 41 41: def self.after_fork! 42: after_fork.each { |block| block.call } 43: end
# File lib/shotgun.rb, line 25 25: def self.before_fork(&block) 26: @before_fork ||= [] 27: @before_fork << block if block 28: @before_fork 29: end
# File lib/shotgun.rb, line 37 37: def self.before_fork! 38: before_fork.each { |block| block.call } 39: end
# File lib/shotgun.rb, line 12 12: def self.enable_copy_on_write 13: GC.copy_on_write_friendly = true if GC.respond_to?(:copy_on_write_friendly=) 14: end
# File lib/shotgun.rb, line 8 8: def self.new(rackup_file, &block) 9: Loader.new(rackup_file, &block) 10: end
# File lib/shotgun.rb, line 16 16: def self.preload(files=]./config/shotgun.rb ./shotgun.rb]) 17: files.each do |preload_file| 18: if File.exist?(preload_file) 19: module_eval File.read(preload_file), preload_file 20: return preload_file 21: end 22: end 23: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.