summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/code_objects.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 00:13:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 00:13:12 +0000
commit02b8d548da9dc72271019423cf49e612e6e7ed8d (patch)
tree1b43e3759ae948a0119ee28738000c3b671c5c76 /lib/rdoc/code_objects.rb
parentfc37503cefbfeb2b829c2bfe71850a00da9873c5 (diff)
downloadruby-02b8d548da9dc72271019423cf49e612e6e7ed8d.tar.gz
ruby-02b8d548da9dc72271019423cf49e612e6e7ed8d.tar.xz
ruby-02b8d548da9dc72271019423cf49e612e6e7ed8d.zip
Enable RDoc debugging only with $DEBUG_RDOC
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_objects.rb')
-rw-r--r--lib/rdoc/code_objects.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb
index d68198249..d75670de7 100644
--- a/lib/rdoc/code_objects.rb
+++ b/lib/rdoc/code_objects.rb
@@ -236,7 +236,7 @@ module RDoc
end
def add_method(a_method)
- puts "Adding #@visibility method #{a_method.name} to #@name" if $DEBUG
+ puts "Adding #@visibility method #{a_method.name} to #@name" if $DEBUG_RDOC
a_method.visibility = @visibility
add_to(@method_list, a_method)
end
@@ -280,10 +280,10 @@ module RDoc
def add_class_or_module(collection, class_type, name, superclass=nil)
cls = collection[name]
if cls
- puts "Reusing class/module #{name}" if $DEBUG
+ puts "Reusing class/module #{name}" if $DEBUG_RDOC
else
cls = class_type.new(name, superclass)
- puts "Adding class/module #{name} to #@name" if $DEBUG
+ puts "Adding class/module #{name} to #@name" if $DEBUG_RDOC
# collection[name] = cls if @document_self && !@done_documenting
collection[name] = cls if !@done_documenting
cls.parent = self
@@ -497,7 +497,7 @@ module RDoc
def add_class_or_module(collection, class_type, name, superclass)
cls = collection[name]
if cls
- puts "Reusing class/module #{name}" if $DEBUG
+ puts "Reusing class/module #{name}" if $DEBUG_RDOC
else
if class_type == NormalModule
all = @@all_modules
@@ -509,7 +509,7 @@ module RDoc
cls = class_type.new(name, superclass)
all[name] = cls unless @done_documenting
end
- puts "Adding class/module #{name} to #@name" if $DEBUG
+ puts "Adding class/module #{name} to #@name" if $DEBUG_RDOC
collection[name] = cls unless @done_documenting
cls.parent = self
end