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

Attributes
Read

The list of comments that were encountered during parsing.

The list of magic 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.

Read

The list of warnings that were generated during parsing.

Read

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

Class Methods

Create a new result object with the given values.

Instance Methods

Implement the hash pattern matching interface for Result.

Returns the encoding of the source code that was parsed.

Returns true if there were errors during parsing and false if there were not.

Returns true if there were no errors during parsing and false if there were.