Class: Prism::Relocation::SourceFilepath

Inherits:
Source
  • Object
show all
Defined in:
lib/prism/relocation.rb,
sig/generated/prism/relocation.rbs

Overview

A source that is represented by a file path.

Instance Attribute Summary

Attributes inherited from Source

#value

Instance Method Summary collapse

Methods inherited from Source

#code_units_cache, #initialize

Constructor Details

This class inherits a constructor from Prism::Relocation::Source

Instance Method Details

#result ⇒ ParseResult

Reparse the file and return the parse result.

: () -> ParseResult

Returns:



233
234
235
# File 'lib/prism/relocation.rb', line 233

def result
  Prism.parse_file(value)
end