Class: Prism::Relocation::CommentsField::Comment
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/prism/relocation.rb |
Overview
An object that represents a slice of a comment.
Class Method Summary
-
.new(slice) ⇒ Comment
constructor
Initialize a new comment with the given slice.
Instance Attribute Summary
-
#slice
readonly
The slice of the comment.
Constructor Details
.new(slice) ⇒ Comment
Initialize a new comment with the given slice.
Instance Attribute Details
#slice (readonly)
The slice of the comment.
# File 'lib/prism/relocation.rb', line 318
attr_reader :slice