class Prism::Relocation::Source
Represents the source of a repository that will be reparsed.
Attributes
value[R]
The value that will need to be reparsed.
Public Class Methods
new(value)
click to toggle source
Initialize the source with the given value.
# File prism/relocation.rb, line 153 def initialize(value) @value = value end
Public Instance Methods
code_units_cache(encoding)
click to toggle source
Create a code units cache for the given encoding.
# File prism/relocation.rb, line 163 def code_units_cache(encoding) result.code_units_cache(encoding) end
result()
click to toggle source
Reparse the value and return the parse result.
# File prism/relocation.rb, line 158 def result raise NotImplementedError, "Subclasses must implement #result" end