On this page
Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.3
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 1
Instance methods 8
Attributes
Read
The list of newline byte offsets in the source code.
Read
The source code that this source object represents.
Read & Write
The line number where this source starts.