This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.
formatter(io)
Creates a new RDoc::Markup::Formatter. If a formatter is given with -f, use it. If we’re outputting to a pager, use bs, otherwise ansi.
# File lib/rdoc/ri/driver.rb, line 1058 def formatter(io) if @formatter_klass then @formatter_klass.new elsif paging? or !io.tty? then RDoc::Markup::ToBs.new else RDoc::Markup::ToAnsi.new end end