Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Ruby::Prism::Source

< Object 17 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 17

Attributes
Read

The source code that this source object represents.

Read

The line number where this source starts.