Class: Prism::Relocation::CommentsField::Comment
- Inherits:
-
Object
- Object
- Prism::Relocation::CommentsField::Comment
- Defined in:
- lib/prism/relocation.rb
Overview
An object that represents a slice of a comment.
Instance Attribute Summary collapse
-
#slice ⇒ Object
readonly
The slice of the comment.
Instance Method Summary collapse
-
#initialize(slice) ⇒ Comment
constructor
Initialize a new comment with the given slice.
Constructor Details
#initialize(slice) ⇒ Comment
Initialize a new comment with the given slice.
321 322 323 |
# File 'lib/prism/relocation.rb', line 321 def initialize(slice) @slice = slice end |
Instance Attribute Details
#slice ⇒ Object (readonly)
The slice of the comment.
318 319 320 |
# File 'lib/prism/relocation.rb', line 318 def slice @slice end |