If you want to use a parser with a stable and documented API use this
instead: https://github.com/whitequark/parser. Ripper isn't exactly a
breeze to work with.

Yorick