summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ri
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-02 01:20:58 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-02 01:20:58 +0000
commita526f452602490dd92cce77f442444fd7ad2a00e (patch)
treea5cafd6b8942aacdb00d97541eaeaa9e9ded6a3c /lib/rdoc/ri
parent2e49ab2677eea877897f98e2583e727a6ad7d83b (diff)
downloadruby-a526f452602490dd92cce77f442444fd7ad2a00e.tar.gz
ruby-a526f452602490dd92cce77f442444fd7ad2a00e.tar.xz
ruby-a526f452602490dd92cce77f442444fd7ad2a00e.zip
Fix parse bug with toplevel methods. Allow RDoc in =begin rdoc/=end comments (experimental)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-rw-r--r--lib/rdoc/ri/ri_options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb
index b9ee21f07..4c8531aa4 100644
--- a/lib/rdoc/ri/ri_options.rb
+++ b/lib/rdoc/ri/ri_options.rb
@@ -5,7 +5,7 @@ module RI
require 'rdoc/ri/ri_display'
- VERSION_STRING = "beta1"
+ VERSION_STRING = "ri: beta1"
CVS_ID = "$Id$";
class Options
@@ -171,7 +171,7 @@ module RI
# Show the version and exit
def show_version
cvs_info = CVS_ID.split
- puts "ri #{VERSION_STRING} (#{cvs_info[2]} #{cvs_info[3]})"
+ puts "#{VERSION_STRING} (#{cvs_info[2]} #{cvs_info[3]})"
exit(0)
end
@@ -230,7 +230,7 @@ module RI
# Return the doc_dir as an array, or nil if no overriding doc dir was given
def paths
- @doc_dir ? [ @doc_dir ] : nil
+ defined?(@doc_dir) ? [ @doc_dir ] : nil
end
# Return an instance of the displayer (the thing that actually writes