Object
Generates ri data files
Build the initial indices and output objects based on an array of TopLevel objects containing the extracted information.
# File lib/rdoc/generator/ri.rb, line 29
29: def generate top_levels
30: install_siginfo_handler
31:
32: RDoc::TopLevel.all_classes_and_modules.each do |klass|
33: @current = "#{klass.class}: #{klass.full_name}"
34:
35: @store.save_class klass
36:
37: klass.each_method do |method|
38: @current = "#{method.class}: #{method.full_name}"
39: @store.save_method klass, method
40: end
41:
42: klass.each_attribute do |attribute|
43: @store.save_method klass, attribute
44: end
45: end
46:
47: @current = 'saving cache'
48:
49: @store.save_cache
50:
51: ensure
52: @current = nil
53:
54: remove_siginfo_handler
55: end
Installs a siginfo handler that prints the current filename.
# File lib/rdoc/generator/ri.rb, line 60
60: def install_siginfo_handler
61: return unless Signal.list.key? 'INFO'
62:
63: @old_siginfo = trap 'INFO' do
64: puts @current if @current
65: end
66: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.