https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782013-12-30T05:11:24ZRuby Issue Tracking SystemRuby master - Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtimehttps://bugs.ruby-lang.org/issues/9319?journal_id=439512013-12-30T05:11:24Zshevegen (Robert A. Heiler)shevegen@gmail.com
<ul></ul><p>Oops, I meant "IRC", not "IRB", but yeah from within running IRB it would be also nice of course. :)</p> Ruby master - Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtimehttps://bugs.ruby-lang.org/issues/9319?journal_id=439762013-12-31T02:53:17Zzzak (zzak _)
<ul></ul><p>Thanks for the report, I can put something together for this soon</p> Ruby master - Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtimehttps://bugs.ruby-lang.org/issues/9319?journal_id=439772013-12-31T03:05:38Zzzak (zzak _)
<ul><li><strong>Category</strong> set to <i>doc</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>zzak (zzak _)</i></li><li><strong>Priority</strong> changed from <i>3</i> to <i>Normal</i></li></ul> Ruby master - Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtimehttps://bugs.ruby-lang.org/issues/9319?journal_id=439792013-12-31T05:45:50Zzzak (zzak _)
<ul></ul><p>I created the following file, but I'm not sure if we should add anything else. <a href="https://gist.github.com/zzak/8187842" class="external">https://gist.github.com/zzak/8187842</a></p>
<p>The old 1.9 file which converted these keywords to methods and added expanded documentation for each one is nice. I'm not sure it helps us or won't just confuse people.</p>
<p>Basically I think we should just make this a file under ./doc and you can access it from irb or ri, as well as it being available in the api documentation.</p> Ruby master - Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtimehttps://bugs.ruby-lang.org/issues/9319?journal_id=480932014-07-27T21:14:54Zzzak (zzak _)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>We've added an rdoc file to the source tree that lists the current keywords of ruby, you can access it a couple of ways, such as:</p>
<p>$ ri ruby:keywords</p>
<p>or from irb:</p>
<p>help "ruby:keywords"</p>