Skip to content

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

class method

Prism.lex_file

lex_file(filepath, **options)

Mirror the Prism.lex_file API by using the serialization API.

See also .lex_compat .lex_ripper .lex .load also in 4.0 · 3.4