Class: RubyParserStuff::Keyword
- Inherits:
-
Object
- Object
- RubyParserStuff::Keyword
- Defined in:
- lib/ruby_parser/ruby_parser_extras.rb
Defined Under Namespace
Classes: KWtable
Constant Summary
- WORDLIST =
Hash[*wordlist.map { |o| [o.name, o] }.flatten]
Class Method Summary (collapse)
Class Method Details
+ (Object) keyword(str)
917 918 919 |
# File 'lib/ruby_parser/ruby_parser_extras.rb', line 917 def self.keyword str WORDLIST[str] end |