开发者

Ruby's :yields:

I was looking through some tab-completions that were automatically set up for my editor, and I found one where y was mapped to:

:yields: arguments

What is this syntax called, when开发者_如何学编程, where, how and for what is this used?


This is one of the many directives supported by the RDoc documentation tool. It is used to document the arguments that get passed to a block.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜