123456789_123456789_123456789_123456789_123456789_

Class: Prism::Relocation::SourceFilepath

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Source
Instance Chain:
self, Source
Inherits: Prism::Relocation::Source
Defined in: lib/prism/relocation.rb

Overview

A source that is represented by a file path.

Class Method Summary

Source - Inherited

.new

Initialize the source with the given value.

Instance Attribute Summary

Source - Inherited

#value

The value that will need to be reparsed.

Instance Method Summary

  • #result

    Reparse the file and return the parse result.

Source - Inherited

#code_units_cache

Create a code units cache for the given encoding.

#result

Reparse the value and return the parse result.

Constructor Details

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

Instance Method Details

#result

Reparse the file and return the parse result.

[ GitHub ]

  
# File 'lib/prism/relocation.rb', line 171

def result
  Prism.parse_file(value)
end