class Prism::Relocation::CommentsField::Comment
An object that represents a slice of a comment.
Attributes
The slice of the comment.
Public Class Methods
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.7.0/lib/prism/relocation.rb, line 322 def initialize(slice) @slice = slice end
Initialize a new comment with the given slice.