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::Result

< Object 5 instance methods 1 class methods

This represents the result of a call to Ruby::Prism.parse or Ruby::Prism.parse_file. It contains the requested structure, any comments that were encounters, and any errors that were encountered.

Class methods 1

Instance methods 5

Attributes
Read

The list of comments that were encountered during parsing.

Read

An optional location that represents the location of the END marker and the rest of the content of the file. This content is loaded into the DATA constant when the file being parsed is the main file being executed.

Read

The list of errors that were generated during parsing.

The list of magic comments that were encountered during parsing.

Read

A Source instance that represents the source code that was parsed.

Read

The list of warnings that were generated during parsing.