class

RDoc::RI::AnsiFormatter

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

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.

This formatter uses ANSI escape sequences to colorize stuff works with pagers such as man and less.

Constants

ATTR_MAP = {\nBOLD => "1",\nITALIC => "33",\nCODE => "36"\n}

HEADINGS = {\n1 => ["\\033[1;32m", "\\033[m"],\n2 => ["\\033[4;32m", "\\033[m"],\n3 => ["\\033[32m", "\\033[m"],\n}

Files

  • lib/rdoc/ri/formatter.rb