Module: RDocF95::RI::Display
- Included in:
- DefaultDisplay
- Defined in:
- lib/rdoc-f95/ri/display.rb
Overview
This is a kind of ‘flag’ module. If you want to write your own ‘ri’ display module (perhaps because you’r writing an IDE or somesuch beast), you simply write a class which implements the various ‘display’ methods in ‘DefaultDisplay’, and include the ‘RiDisplay’ module in that class.
To access your class from the command line, you can do
ruby -r <your source file> ../ri ....
Constant Summary collapse
- @@display_class =
nil
Class Method Summary collapse
Class Method Details
.append_features(display_class) ⇒ Object
17 18 19 |
# File 'lib/rdoc-f95/ri/display.rb', line 17 def self.append_features(display_class) @@display_class = display_class end |
.new(*args) ⇒ Object
21 22 23 |
# File 'lib/rdoc-f95/ri/display.rb', line 21 def self.new(*args) @@display_class.new(*args) end |