In Files

  • rdoc/ri/display.rb

Files

Class/Module Index [+]

Quicksearch

RDoc::RI::Display

This is a kind of ‘flag’ module. If you want to write your own ‘ri’ display module (perhaps because you’re writing an IDE), you write a class which implements the various ‘display’ methods in RDoc::RI::DefaultDisplay, and include the RDoc::RI::Display module in that class.

To access your class from the command line, you can do

ruby -r <your source file>  ../ri ....

Public Class Methods

append_features(display_class) click to toggle source
 
               # File rdoc/ri/display.rb, line 27
def self.append_features(display_class)
  @@display_class = display_class
end
            
new(*args) click to toggle source
 
               # File rdoc/ri/display.rb, line 31
def self.new(*args)
  @@display_class.new(*args)
end