Skip to content
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 3.4 · 3.3