class RDoc::Context::Section
クラスの継承リスト: RDoc::Context::Section < RDoc::Text < Object < Kernel < BasicObject
要約
section に関する情報を保持するクラスです。
ドキュメント中で以下のように記述した情報を保持しています。
# :section: The title # The body
特異メソッド
new(parent, title, comment) -> RDoc::Context::Section
-
自身を初期化します。
- [PARAM] parent:
- RDoc::Context オブジェクトを指定します。
- [PARAM] title:
- section のタイトルを文字列で指定します。
- [PARAM] comment:
- section のコメントを文字列で指定します。
また、section のシーケンス番号を新しく作成します。
インスタンスメソッド
self == other -> bool
-
自身と other のシーケンス番号を比較した結果を返します。
- [PARAM] other:
- RDoc::Context::Section オブジェクトを指定します。
comment -> String | nil
-
section のコメントを返します。
inspect -> String
-
自身の情報を人間に読みやすい文字列にして返します。
parent -> RDoc::Context
-
自身が所属する RDoc::Context オブジェクトを返します。
sequence -> String
-
section のシーケンス番号を文字列で返します。
リンクを作成する時に使われます。
set_comment(comment) -> ()
-
自身にコメントを設定します。
- [PARAM] comment:
- 文字列を指定します。
comment の最初の行に :section: を含んでいた場合、その行以降の文字列をコ メントとして設定します。そうでない場合は comment すべてをコメントとして 設定します。
# --------------------- # :section: The title # The body # ---------------------
title -> String | nil
-
section のタイトルを返します。
class RDoc::Context::Section