Type:
Module
Constants:
MARKUP_FORMAT : { 'markdown' => RDoc::Markdown, 'rdoc' => RDoc::Markup, 'rd' => RDoc::RD, 'tomdoc' => RDoc::TomDoc, }

Maps markup formats to classes that can parse them. If the format is unknown, ârdocâ format is used.

TO_HTML_CHARACTERS : Hash.new do |h, encoding| h[encoding] = { :close_dquote => encode_fallback('â', encoding, '"'), :close_squote => encode_fallback('â', encoding, '\''), :copyright => encode_fallback('©', encoding, '(c)'), :ellipsis => encode_fallback('â¦', encoding, '...'), :em_dash => encode_fallback('â', encoding, '---'), :en_dash => encode_fallback('â', encoding, '--'), :open_dquote => encode_fallback('â', encoding, '"'), :open_squote => encode_fallback('â', encoding, '\''), :trademark => encode_fallback('®', encoding, '(r)'), } end if Object.const_defined? :Encoding

Maps an encoding to a Hash of characters properly transcoded for that encoding.

See also encode_fallback.

Methods for manipulating comment text

strip_stars
  • References/Ruby on Rails/Ruby/Classes/RDoc/RDoc::Text

strip_stars(text) Instance Public methods Strips style comments

2025-01-10 15:47:30
to_html
  • References/Ruby on Rails/Ruby/Classes/RDoc/RDoc::Text

to_html(text) Instance Public methods Converts ampersand, dashes, ellipsis,

2025-01-10 15:47:30