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

< Object 2 instance methods 1 class methods

This represents a magic comment that was encountered during parsing.

Class methods 1

Instance methods 2

Attributes
Read

A Location object representing the location of the key in the source.

Read

A Location object representing the location of the value in the source.