Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Prism.lex_ripper

Prism::lex_ripper(source) → Array

This lexes with the Ripper lex. It drops any space events but otherwise returns the same tokens. Raises SyntaxError if the syntax in source is invalid.

See also .lex_file .load .lex_compat .parse also in 4.0 · 3.4