text.rb

Path: lib/rdoc/text.rb
Last Update: Sun Jan 12 16:55:37 +0000 2014

coding: utf-8

Required files

strscan   json  

Methods

Public Class methods

Transcodes character to encoding with a fallback character.

Public Instance methods

Expands tab characters in text to eight spaces

Flush text left based on the shortest line

Convert a string in markup format into HTML.

Requires the including class to implement formatter

Strips hashes, expands tabs then flushes text to the left

Normalizes text then builds a RDoc::Markup::Document from it

The first limit characters of text as HTML

Strips leading # characters from text

Strips leading and trailing \n characters from text

Strips /* */ style comments

Converts ampersand, dashes, ellipsis, quotes, copyright and registered trademark symbols in text to properly encoded characters.

Wraps txt to line_len

[Validate]