るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.081秒)

別のキーワード

  1. tracer add_filter
  2. logger add
  3. rexml/document add
  4. openssl add_extension
  5. socket ip_add_membership

ライブラリ

クラス

検索結果

RDoc::Markup#add_html(tag, name) -> () (18120.0)

tag で指定したタグをフォーマットの対象にします。

...ッタに識別させる時の名前を
Symbol で指定します。

例:

require
'rdoc/markup/simple_markup'
require
'rdoc/markup/simple_markup/to_html'
m = SM::SimpleMarkup.new
m.add_html("no", :STRIKE)

h = SM::ToHtml.new
h.add_tag(:STRIKE, "<strike>", "</strike>")
put...

RDoc::Markup#add_special(pattern, name) -> () (19.0)

pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま す。

...:SimpleMarkup#add_html でフォーマットできないものに対して使用
します。

@param pattern 正規表現を指定します。

@param name SM::ToHtml などのフォーマッタに識別させる時の名前を
Symbol で指定します。

例:

require
'rdoc/markup/...
...simple_markup'
require
'rdoc/markup/simple_markup/to_html'

class WikiHtml < SM::ToHtml
def handle_special_WIKIWORD(special)
"<font color=red>" + special.text + "</font>"
end
end

m = SM::SimpleMarkup.new
m.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)

h = WikiHtml.new...