< Ruby Programming < Standard Library
Ripper
Ripper is a C-based Ruby parser available in MRI 1.9+
It parses ruby code into an AST, including comments. YARD for example, uses it, as does the assert2 gem.
Note that there are some other ruby parsers available (some written in ruby), for example the Redparse gem.
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.