るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.428秒)
トップページ > クエリ:Class#new[x] > クエリ:extend[x] > クエリ:yaml_tag[x] > クエリ:instance_variables[x] > クラス:RDoc::Markup[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

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

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

.../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
puts m.convert(input_string...