mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support call-seq: for Ruby methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4437be2c64
commit
e6de7978a1
3 changed files with 19 additions and 0 deletions
|
@ -1975,6 +1975,16 @@ module RDoc
|
|||
parse_statements(container, single, meth)
|
||||
|
||||
remove_token_listener(meth)
|
||||
|
||||
# Look for a 'call-seq' in the comment, and override the
|
||||
# normal parameter stuff
|
||||
|
||||
if comment.sub!(/call-seq:(.*?)^\s*\#?\s*$/m, '')
|
||||
$stderr.puts $1
|
||||
seq = $1
|
||||
seq.gsub!(/^\s*\#\s*/, '')
|
||||
meth.call_seq = seq
|
||||
end
|
||||
|
||||
meth.comment = comment
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue