Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > rdoc/generator/json_indexライブラリ > RDoc::Generator::JsonIndexクラス > new

singleton method RDoc::Generator::JsonIndex.new

new(parent_generator, options) -> RDoc::Generator::JsonIndex[permalink][rdoc]

RDoc::Generator::JsonIndex オブジェクトを初期化します。

[PARAM] parent_generator:
親となるジェネレータオブジェクトを指定します。 RDoc::Generator::JsonIndex#class_dir や #file_dir を決めるのに使用します。他のジェネレータとは異なり、RDoc::Store オブジェクトではない点に注意してください。
[PARAM] options:
RDoc::Options オブジェクトを指定します。 parent_generator に渡されたものと同じものを指定します。