Method: RDoc::Generator::JsonIndex#initialize
- Defined in:
- lib/rdoc/generator/json_index.rb
#initialize(parent_generator, options) ⇒ JsonIndex
Creates a new generator. parent_generator
is used to determine the class_dir and file_dir of links in the output index.
options
are the same options passed to the parent generator.
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/rdoc/generator/json_index.rb', line 94 def initialize parent_generator, @parent_generator = parent_generator @store = parent_generator.store @options = @template_dir = File. '../template/json_index', __FILE__ @base_dir = @parent_generator.base_dir @classes = nil @files = nil @index = nil end |