class Prism::Comment

base class for all comment types.
This represents a comment that was encountered during parsing. It is the

def deconstruct_keys(keys)

Implement the hash pattern matching interface for Comment.
def deconstruct_keys(keys)
  { location: location }
end

def initialize(location)

Create a new comment object with the given location.
def initialize(location)
  @location = location
end

def slice

Returns the content of the comment by slicing it from the source code.
def slice
  location.slice
end