On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Prism::Source
This represents a source of Ruby code that has been parsed. It is used in conjunction with locations to allow them to resolve line numbers and source ranges.
Class methods 2
Instance methods 13
Attributes
Read
The list of newline byte offsets in the source code.
Read
The source code that this source object represents.
Read
The line number where this source starts.