class Prism::Relocation::Source
表示需要重新解析的仓库的来源。
属性
需要重新解析的值。
公共类方法
来源
# File lib/prism/relocation.rb, line 153 def initialize(value) @value = value end
使用给定值初始化来源。
公共实例方法
来源
# File lib/prism/relocation.rb, line 163 def code_units_cache(encoding) result.code_units_cache(encoding) end
为给定编码创建代码单元缓存。
来源
# File lib/prism/relocation.rb, line 158 def result raise NotImplementedError, "Subclasses must implement #result" end
重新解析该值并返回解析结果。