本文簡要介紹ruby語言中 RDoc::Parser.use_markup
的用法。
用法
use_markup(content)
如果文件前麵有 markup: parser_name
注釋,則使用它來確定解析器。例如:
# markup: rdoc
# Class comment can go here
class C
end
注釋應顯示為 content
的第一行。
如果內容包含 shebang 或編輯器模式行,則注釋可能會出現在第二行或第三行。
可以使用任何注釋樣式來隱藏標記注釋。
相關用法
- Ruby Parser類用法及代碼示例
- Ruby Pathname.<=>用法及代碼示例
- Ruby Pathname.children用法及代碼示例
- Ruby Pathname.descend用法及代碼示例
- Ruby Pathname.getwd用法及代碼示例
- Ruby Pathname.ascend用法及代碼示例
- Ruby Pathname.pwd用法及代碼示例
- Ruby Pathname.+用法及代碼示例
- Ruby Pathname.sub_ext用法及代碼示例
- Ruby Pathname.glob用法及代碼示例
- Ruby Pathname.entries用法及代碼示例
- Ruby Pathname.join用法及代碼示例
- Ruby Pathname.sub用法及代碼示例
- Ruby Pathname類用法及代碼示例
- Ruby Pathname.each_filename用法及代碼示例
- Ruby Pathname.absolute?用法及代碼示例
- Ruby Pathname.relative?用法及代碼示例
- Ruby Pathname.each_child用法及代碼示例
- Ruby PackageTask類用法及代碼示例
- Ruby PrettyPrint.current_group用法及代碼示例
- Ruby Process.groups用法及代碼示例
- Ruby Process.wait2用法及代碼示例
- Ruby Process.getpgrp用法及代碼示例
- Ruby Proc.eql?用法及代碼示例
- Ruby PTY.open用法及代碼示例
注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 Parser.use_markup。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。