https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-03-24T01:18:52ZRuby Issue Tracking SystemRuby master - Bug #8157: How to write document for __LINE__, __FILE__, __END__ https://bugs.ruby-lang.org/issues/8157?journal_id=378622013-03-24T01:18:52Zzzak (zzak _)
<ul></ul><p>I think we will have to teach RDoc to understand these keywords.</p>
<p>If you want to reference them from another class or method, wrapping them in + should prevent RDoc from generating any extra markup, ie: +<strong>FILE</strong>+</p> Ruby master - Bug #8157: How to write document for __LINE__, __FILE__, __END__ https://bugs.ruby-lang.org/issues/8157?journal_id=378682013-03-24T05:39:46Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>=begin<br>
There is a conflict as "_" in RDoc means "emphasis". You can use slashes to escape, but it is a little ugly:</p>
<p>_<em>FILE</em>_</p>
<p>Maybe I can make <strong>whatever</strong> special in RDoc, I will try.</p>
<p>=end</p> Ruby master - Bug #8157: How to write document for __LINE__, __FILE__, __END__ https://bugs.ruby-lang.org/issues/8157?journal_id=396192013-06-02T12:28:36Zzzak (zzak _)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>I've moved this to the RDoc tracker on github: <a href="https://github.com/rdoc/rdoc/issues/230" class="external">https://github.com/rdoc/rdoc/issues/230</a></p>