class Ruby::Prism::MagicComment
This represents a magic comment that was encountered during parsing.
Attributes
A Location object representing the location of the key in the source.
A Location object representing the location of the value in the source.
Public Class Methods
Public Instance Methods
Returns the key of the magic comment by slicing it from the source code.
: () -> String
# File lib/ruby/prism/parse_result.rb, line 796 def key key_loc.slice end