Class: Solargraph::Parser::ParserGem::FlawedBuilder

Inherits:
Parser::Builders::Default
  • Object
show all
Defined in:
lib/solargraph/parser/parser_gem/flawed_builder.rb

Overview

A custom builder for source parsers that ignores character encoding issues in literal strings.

Instance Method Summary collapse

Instance Method Details

#string_value(token) ⇒ String

Parameters:

  • token (::Parser::AST::Node)

Returns:

  • (String)


12
13
14
# File 'lib/solargraph/parser/parser_gem/flawed_builder.rb', line 12

def string_value(token)
  value(token)
end