1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add '()' around parameters that don't have them

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-05-21 00:23:34 +00:00
parent 2027b84927
commit 69feb8d1a5
2 changed files with 6 additions and 0 deletions

View file

@ -1986,6 +1986,7 @@ module RDoc
def parse_method_parameters(method)
res = parse_method_or_yield_parameters(method)
res = "(" + res + ")" unless res[0] == ?(
method.params = res unless method.params
if method.block_params.nil?
skip_tkspace(false)