1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
dave 2004-04-02 01:20:58 +00:00
parent 64ec09d456
commit ef38efca9f
5 changed files with 66 additions and 26 deletions

View file

@ -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