diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-02 01:20:58 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-02 01:20:58 +0000 |
| commit | 5c4872b0ca73232dc701d86e6d76194d5fc6255e (patch) | |
| tree | 90dc42fcaf210fab6d590538d642a90da03c37c3 /lib/rdoc/ri | |
| parent | 5107f2b7a572740914ed9f47fa3119531c7bae85 (diff) | |
| download | ruby-5c4872b0ca73232dc701d86e6d76194d5fc6255e.tar.gz ruby-5c4872b0ca73232dc701d86e6d76194d5fc6255e.tar.xz ruby-5c4872b0ca73232dc701d86e6d76194d5fc6255e.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/branches/ruby_1_8@6066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
| -rw-r--r-- | lib/rdoc/ri/ri_options.rb | 6 |
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 |
