summaryrefslogtreecommitdiff
path: root/bin/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rdoc')
-rwxr-xr-xbin/rdoc9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/rdoc b/bin/rdoc
index 8fafd01b0f..20d866c220 100755
--- a/bin/rdoc
+++ b/bin/rdoc
@@ -5,8 +5,13 @@
#
# Copyright (c) 2003 Dave Thomas
# Released under the same terms as Ruby
-#
-# $Revision$
+
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
require 'rdoc/rdoc'