Vit*_*huk 6 ruby ruby-on-rails
继续使用Ruby编写的源代码,比如Rails,我经常看到小代码用tt标签包装,比如rails/activesupport/core_ext/array/access.rb
# Equal to <tt>self[2]</tt>.
#
# %w( a b c d e).third # => "c"
def third
self[2]
end
Run Code Online (Sandbox Code Playgroud)
这背后的惯例是什么,何时以及为什么决定使用这种表示法?
是的,我的错误,抱歉
这是特殊RDoc系统的一部分。
Non-verbatim text can be marked up:
italic: word or <em>text</em>
bold: word or <b>text</b>
typewriter: word or <tt>text</tt>
Run Code Online (Sandbox Code Playgroud)
在这里阅读更多相关信息
| 归档时间: |
|
| 查看次数: |
430 次 |
| 最近记录: |