aboutsummaryrefslogtreecommitdiffstats
path: root/bin/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rdoc')
-rwxr-xr-xbin/rdoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/rdoc b/bin/rdoc
index 8fafd01b0f..64601a819e 100755
--- a/bin/rdoc
+++ b/bin/rdoc
@@ -8,6 +8,13 @@
#
# $Revision$
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
+
require 'rdoc/rdoc'
begin