summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri
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
commit9a826fff233de78476a2bbccd63338056781ffa5 (patch)
tree572bdd74ba9c1ad3b96be1aa9c2cb8db985ae7ab /lib/rdoc/ri
parentfbae4f97ee2a7d3b67cacd00c76589294a561c8a (diff)
Split out ri display code and make pluggable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-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