mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fcb0b1f503
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
22 lines
402 B
Ruby
22 lines
402 B
Ruby
#!/usr/bin/env ruby
|
|
#
|
|
# RDoc: Documentation tool for source code
|
|
# (see lib/rdoc/rdoc.rb for more information)
|
|
#
|
|
# Copyright (c) 2003 Dave Thomas
|
|
# Released under the same terms as Ruby
|
|
#
|
|
# $Revision$
|
|
|
|
require 'rdoc/rdoc'
|
|
|
|
begin
|
|
r = RDoc::RDoc.new
|
|
r.document ARGV
|
|
rescue Interrupt
|
|
$stderr.puts
|
|
$stderr.puts "Interrupted"
|
|
rescue RDoc::Error => e
|
|
$stderr.puts e.message
|
|
exit 1
|
|
end
|