class Prism::Comment
This represents a comment that was encountered during parsing. It is the base class for all comment types.
Attributes
location
[R]
Location
The location of this comment in the source.
Public Class Methods
(Location location) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/parse_result.rb, line 526 def initialize(location) @location = location end
Create a new comment object with the given location.