Method: RDoc::Parser::Ruby#parse_method_parameters

Defined in:
lib/rdoc/parser/ruby.rb

#parse_method_parameters(method) ⇒ Object

Capture the method’s parameters. Along the way, look for a comment containing:

# yields: ....

and add this as the block_params for the method



1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
# File 'lib/rdoc/parser/ruby.rb', line 1649

def parse_method_parameters method
  res = parse_method_or_yield_parameters method

  res = "(#{res})" unless res =~ /\A\(/
  method.params = res unless method.params

  return if  method.block_params

  skip_tkspace_without_nl
  read_documentation_modifiers method, RDoc::METHOD_MODIFIERS
end