class Prism::Relocation::Source
Represents the source of a repository that will be reparsed.
Represents the source of a repository that will be reparsed.
Attributes
value
[R]
untyped
The value that will need to be reparsed.
The value that will need to be reparsed.
Public Class Methods
(untyped value) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/lib/prism/relocation.rb, line 209 def initialize(value) @value = value end
Initialize the source with the given value.
Initialize the source with the given value.
: (untyped value) -> void
Public Instance Methods
(Encoding encoding) → _CodeUnitsCache
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/lib/prism/relocation.rb, line 223 def code_units_cache(encoding) result.code_units_cache(encoding) end
Create a code units cache for the given encoding.
Create a code units cache for the given encoding.
: (Encoding encoding) -> _CodeUnitsCache
() → ParseResult
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/lib/prism/relocation.rb, line 216 def result raise NotImplementedError, "Subclasses must implement #result" end
Reparse the value and return the parse result.
Reparse the value and return the parse result.
: () -> ParseResult