class

RDoc::RI::AttributeFormatter

ruby latest stable - Superclass: RDoc::RI::Formatter

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

Handle text with attributes. We’re a base class: there are different presentation classes (one, for example, uses overstrikes to handle bold and underlining, while another using ANSI escape sequences.

Constants

ATTR_MAP = {\n"b" => BOLD,\n"code" => CODE,\n"em" => ITALIC,\n"i" => ITALIC,\n"tt" => CODE\n}

AttrChar = Struct.new :char, :attr

BOLD = 1

CODE = 4

ITALIC = 2

Files

  • lib/rdoc/ri/formatter.rb