aboutsummaryrefslogtreecommitdiffstats
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
commitef38efca9f4835ee2306f9b56eb26a2eaa14dc7a (patch)
treea5cafd6b8942aacdb00d97541eaeaa9e9ded6a3c /lib/rdoc/ri
parent64ec09d45675fa8a12594c00b8b4acccf9960fce (diff)
downloadruby-ef38efca9f4835ee2306f9b56eb26a2eaa14dc7a.tar.gz
Fix parse bug with toplevel methods. Allow RDoc in =begin rdoc/=end comments (experimental)
git-svn-id: svn+ssh://ci.ruby-lang.org/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 b9ee21f073..4c8531aa47 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