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

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

parse(text, format = 'rdoc') Instance Public methods Normalizes text

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

snippet(text, limit = 100) Instance Public methods The first limit

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

encode_fallback(character, encoding, fallback) Class Public methods Transcodes

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

strip_newlines(text) Instance Public methods Strips leading and trailing n characters

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

expand_tabs(text) Instance Public methods Expands tab characters in text

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

strip_hashes(text) Instance Public methods Strips leading # characters from

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

normalize_comment(text) Instance Public methods Strips hashes, expands tabs

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

flush_left(text) Instance Public methods Flush text left based

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

wrap(txt, line_len = 76) Instance Public methods Wraps txt to

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

markup(text) Instance Public methods Convert a string in markup format into

2025-01-10 15:47:30