Class: Prism::Relocation::SourceString

Inherits:
Source
  • Object
show all
Defined in:
lib/prism/relocation.rb

Overview

A source that is represented by a string.

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

#resultObject

Reparse the string and return the parse result.



179
180
181
# File 'lib/prism/relocation.rb', line 179

def result
  Prism.parse(value)
end