Class: LogStash::Config::AST::String

Inherits:
Value
  • Object
show all
Defined in:
lib/logstash/config/config_ast.rb

Instance Method Summary collapse

Methods inherited from Node

#text_value_for_comments

Instance Method Details

#compileObject



355
356
357
358
359
360
361
# File 'lib/logstash/config/config_ast.rb', line 355

def compile
  if get_meta(PROCESS_ESCAPE_SEQUENCES)
    Unicode.wrap(LogStash::Config::StringEscape.process_escapes(text_value[1...-1]))
  else
    Unicode.wrap(text_value[1...-1])
  end
end