aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-01-22 19:42:35 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-01-22 19:42:35 +0000
commitd54170b749909b92f5c881025e236961bc0dc54b (patch)
tree6cb836de808e9bae12c12a6d59640764408cd746
parent34c54fe7f4b3fbd59cb5778ed89eb278a9fd8bd8 (diff)
downloadpaludis-d54170b749909b92f5c881025e236961bc0dc54b.tar.gz
paludis-d54170b749909b92f5c881025e236961bc0dc54b.tar.xz
(ruby) Document more template methods.
-rw-r--r--doc/api/ruby/create_ruby_doc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/ruby/create_ruby_doc.rb b/doc/api/ruby/create_ruby_doc.rb
index 221ad24..6e48264 100644
--- a/doc/api/ruby/create_ruby_doc.rb
+++ b/doc/api/ruby/create_ruby_doc.rb
@@ -48,6 +48,8 @@ module RDoc
line.gsub!(/RUBY_FUNC_CAST\(*([^)]+)\)*/) {|match| $1}
#help rdoc recognise template methods
line.gsub!(/\w+<\s*\w+(::\w+)*(,\s*\w+)*(::\w+)?>::\w+/,'template_methods')
+ #catch more templates
+ line.gsub!(/\w+\s*<\s*\w+\s*<\s*\w+\s*>,\s*\w+::\w+>::\w+/, 'template_methods')
end
new_body+= line
end