Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
new(markup = nil)
public
Creates a new ToAnsi
visitor that is ready to output vibrant ANSI color!
# File lib/rdoc/markup/to_ansi.rb, line 9
def initialize markup = nil
super
@headings.clear
@headings[1] = ["\e[1;32m", "\e[m"] # bold
@headings[2] = ["\e[4;32m", "\e[m"] # underline
@headings[3] = ["\e[32m", "\e[m"] # just green
end