123456789_123456789_123456789_123456789_123456789_

Class: Prism::Relocation::CommentsField

Relationships & Source Files
Namespace Children
Classes:
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: lib/prism/relocation.rb

Overview

An abstract field used as the parent class of the two comments fields.

Instance Method Summary

Instance Method Details

#comments(values) (private)

Create comment objects from the given values.

[ GitHub ]

  
# File 'lib/prism/relocation.rb', line 329

def comments(values)
  values.map { |value| Comment.new(value.slice) }
end