aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ri/ri_options.rb
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-06 05:59:31 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-06 05:59:31 +0000
commit96ff9b04c1e350621e3f2b4e5e35fa1bd7fb0b2d (patch)
treee5fae3ab529798283234a6cd58f04c4271b851a9 /lib/rdoc/ri/ri_options.rb
parent79c0e644a175754540399ff2148f3fdb5c998339 (diff)
downloadruby-96ff9b04c1e350621e3f2b4e5e35fa1bd7fb0b2d.tar.gz
Split out ri display code and make pluggable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/ri_options.rb')
-rw-r--r--lib/rdoc/ri/ri_options.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb
index f0ba69f4d3..c62335c147 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