class Prism::Relocation::Source

Represents the source of a repository that will be reparsed.

def code_units_cache(encoding)

Create a code units cache for the given encoding.
def code_units_cache(encoding)
  result.code_units_cache(encoding)
end

def initialize(value)

Initialize the source with the given value.
def initialize(value)
  @value = value
end

def result

Reparse the value and return the parse result.
def result
  raise NotImplementedError, "Subclasses must implement #result"
end