class Prism::Relocation::CommentsField
An abstract field used as the parent class of the two comments fields.
Private Instance Methods
Source
# File lib/prism/relocation.rb, line 329
def comments(values)
values.map { |value| Comment.new(value.slice) }
end Create comment objects from the given values.
Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.