instance method
Prism::Relocation::CommentsField#comments
comments(values)
lib/prism/relocation.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/relocation.rb, line 330
def comments(values)
values.map { |value| Comment.new(value.slice) }
end
Create comment objects from the given values.
also in
3.4