class method
Prism::Relocation::CommentsField::Comment.new
new(slice)
lib/prism/relocation.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/relocation.rb, line 322
def initialize(slice)
@slice = slice
end
Initialize a new comment with the given slice.
also in
3.4