Outputs RDoc markup with hot backspace action! You will probably need a pager to use this output format.
This formatter won't work on 1.8.6 because it lacks String#chars.
Methods
Class Public methods
Instance Public methods
accept_heading(heading)
Link
Makes heading text bold.
annotate(tag)
Link
Turns on or off special handling for convert_string
convert_special(special)
Link
Calls #convert_string on the result of #convert_special
convert_string(string)
Link
Adds bold or underline mixed with backspaces
# File ../ruby/lib/rdoc/markup/to_bs.rb, line 67 def convert_string string return string unless string.respond_to? :chars # your ruby is lame return string unless @in_b or @in_em chars = if @in_b then string.chars.map do |char| "#{char}\b#{char}" end elsif @in_em then string.chars.map do |char| "_\b#{char}" end end chars.join end
init_tags()
Link
Sets a flag that is picked up by annotate to do the right thing in convert_string