Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > rdoc/code_objectsライブラリ > RDoc::Context::Sectionクラス > new

singleton method RDoc::Context::Section.new

new(title, comment) -> RDoc::Context::Section

自身を初期化します。

[PARAM] title:
section のタイトルを文字列で指定します。
[PARAM] comment:
section のコメントを文字列で指定します。

また、section のシーケンス番号を新しく作成します。

class RDoc::Context::Section