Class: Reek::AST::Builder

Inherits:
Parser::Builders::Default
  • Object
show all
Defined in:
lib/reek/ast/builder.rb

Overview

An AST Builder for ruby parser.

Instance Method Summary collapse

Instance Method Details

#string_value(token) ⇒ Object

This is a work around for parsing ruby code that has a string with invalid sequence as UTF-8. See. github.com/whitequark/parser/issues/283



11
12
13
# File 'lib/reek/ast/builder.rb', line 11

def string_value(token)
  value(token)
end