summaryrefslogtreecommitdiff
path: root/lib/rdoc/generators/ri_generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/generators/ri_generator.rb')
-rw-r--r--lib/rdoc/generators/ri_generator.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rdoc/generators/ri_generator.rb b/lib/rdoc/generators/ri_generator.rb
index 22467e4ba9..705ad7da06 100644
--- a/lib/rdoc/generators/ri_generator.rb
+++ b/lib/rdoc/generators/ri_generator.rb
@@ -189,11 +189,11 @@ module Generators
end
def params_of(method)
- params = method.params || ""
-
- if params =~ /^!verb!(.*)/m
- p = $1
+ if method.call_seq
+ method.call_seq
else
+ params = method.params || ""
+
p = params.gsub(/\s*\#.*/, '')
p = p.tr("\n", " ").squeeze(" ")
p = "(" + p + ")" unless p[0] == ?(
@@ -206,8 +206,8 @@ module Generators
end
p << " {|#{block.strip}| ...}"
end
+ p
end
- p
end
def markup(comment)