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.
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.
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.