diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-06 05:59:31 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-06 05:59:31 +0000 |
| commit | 5947bd32633c581725b14559f066d923c79d2323 (patch) | |
| tree | 572bdd74ba9c1ad3b96be1aa9c2cb8db985ae7ab /lib | |
| parent | 06245218e74d9712b7124edff2c529167713e8d4 (diff) | |
Split out ri display code and make pluggable
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rdoc/ri/ri_options.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index f0ba69f4d..c62335c14 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -3,6 +3,8 @@ module RI + require 'rdoc/ri/ri_display' + VERSION_STRING = "alpha 0.1" class Options @@ -201,6 +203,14 @@ module RI def paths @doc_dir ? [ @doc_dir ] : nil end + + # Return an instance of the displayer (the thing that actually writes + # the information). This allows us to load in new displayer classes + # at runtime (for example to help with IDE integration) + + def displayer + ::RiDisplay.new(self) + end end end |
