class Prism::Relocation::Source
表示将要被重新解析的仓库的源。
属性
需要被重新解析的值。
Public Class Methods
Source
# File lib/prism/relocation.rb, line 154 def initialize(value) @value = value end
使用给定值初始化源。
Public Instance Methods
Source
# File lib/prism/relocation.rb, line 164 def code_units_cache(encoding) result.code_units_cache(encoding) end
为给定的编码创建一个代码单元缓存。
Source
# File lib/prism/relocation.rb, line 159 def result raise NotImplementedError, "Subclasses must implement #result" end
重新解析值并返回解析结果。