From: "zzak (Zachary Scott)" Date: 2013-12-31T03:05:40+09:00 Subject: [ruby-core:59413] [ruby-trunk - Feature #9319][Assigned] Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtime Issue #9319 has been updated by zzak (Zachary Scott). Category set to doc Status changed from Open to Assigned Assignee set to zzak (Zachary Scott) Priority changed from Low to Normal ---------------------------------------- Feature #9319: Add constant RUBY_KEYWORDS or a similar way to output which keywords exist at runtime https://bugs.ruby-lang.org/issues/9319#change-43977 Author: shevegen (Robert A. Heiler) Status: Assigned Priority: Normal Assignee: zzak (Zachary Scott) Category: doc Target version: current: 2.2.0 Hi, Would it be possible to list all keywords in Ruby, from within a running program? Like RUBY_KEYWORDS or similar? Reasoning: On IRB someone asked me if "in" is a keyword. I was not sure so I googled because I could not remember right off the head (I later remembered that "in" must be because it is used in a "for" loop). It would be nice if we could ask ruby itself which keywords would be available, i.e. stored in an array. http://ruby-doc.org/docs/keywords/1.9/ has a nice description of all keywords too, which is great. -- http://bugs.ruby-lang.org/