diff options
author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-07-28 20:50:01 +0200 |
---|---|---|
committer | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-07-28 20:50:50 +0200 |
commit | 450a19c405810358684a47b87ef9eca26589b95f (patch) | |
tree | 124116ad90ebb2d1d4881bbe8bef1b46aebf2841 /lib/puppet/util/rdoc/parser.rb | |
parent | 8551ece0d55dafceab633ee6eec46fb1c54c1446 (diff) | |
download | puppet-450a19c405810358684a47b87ef9eca26589b95f.tar.gz puppet-450a19c405810358684a47b87ef9eca26589b95f.tar.xz puppet-450a19c405810358684a47b87ef9eca26589b95f.zip |
Fix #2454 - Definition named after a module don't show in puppetdoc
RDoc#find_local_symbol can return a module. So if you have a defition
of the same name as the module in which it is defined we weren't
producing documentation for it.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/util/rdoc/parser.rb')
-rw-r--r-- | lib/puppet/util/rdoc/parser.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/puppet/util/rdoc/parser.rb b/lib/puppet/util/rdoc/parser.rb index 818c29d9c..80b3932ff 100644 --- a/lib/puppet/util/rdoc/parser.rb +++ b/lib/puppet/util/rdoc/parser.rb @@ -255,8 +255,6 @@ class Parser # split define name by :: to find the complete module hierarchy container, name = get_class_or_module(container,name) - return if container.find_local_symbol(name) - # build up declaration declaration = "" define.arguments.each do |arg,value| |