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.
322 323 324 |
# File 'lib/prism/relocation.rb', line 322 def initialize(slice) @slice = slice end |
Instance Attribute Details
#slice ⇒ Object (readonly)
The slice of the comment.
319 320 321 |
# File 'lib/prism/relocation.rb', line 319 def slice @slice end |