Skip to content
On this page
class · Ruby 4.0

Prism::Source

< Object 16 instance methods 2 class methods

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 16

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.