123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

  • #slice readonly

    The slice of the comment.

Constructor Details

.new(slice) ⇒ Comment

Initialize a new comment with the given slice.

[ GitHub ]

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

def initialize(slice)
  @slice = slice
end

Instance Attribute Details

#slice (readonly)

The slice of the comment.

[ GitHub ]

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

attr_reader :slice