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/trunk@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
406f506d59
commit
13e0f77bf4
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri May 21 09:22:05 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_parameters):
|
||||||
|
Add ()'s around parameters that don't have them
|
||||||
|
|
||||||
Fri May 21 02:21:11 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
|
Fri May 21 02:21:11 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
|
||||||
|
|
||||||
* lib/csv.rb: fixed a few bugs around multi char record/field separator.
|
* lib/csv.rb: fixed a few bugs around multi char record/field separator.
|
||||||
|
|
|
@ -1986,6 +1986,7 @@ module RDoc
|
||||||
|
|
||||||
def parse_method_parameters(method)
|
def parse_method_parameters(method)
|
||||||
res = parse_method_or_yield_parameters(method)
|
res = parse_method_or_yield_parameters(method)
|
||||||
|
res = "(" + res + ")" unless res[0] == ?(
|
||||||
method.params = res unless method.params
|
method.params = res unless method.params
|
||||||
if method.block_params.nil?
|
if method.block_params.nil?
|
||||||
skip_tkspace(false)
|
skip_tkspace(false)
|
||||||
|
|
Loading…
Reference in a new issue