Skip to content

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

instance method

Prism::Location#slice_lines

slice_lines

The source code that this location represents starting from the beginning of the line that this location starts on to the end of the line that this location ends on.