Class: Prism::Relocation::SourceString

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

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

#result ⇒ ParseResult

Reparse the string and return the parse result.

: () -> ParseResult

Returns:



243
244
245
# File 'lib/prism/relocation.rb', line 243

def result
  Prism.parse(value)
end