Class: FEEL::StringLiteral
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- FEEL::StringLiteral
- Defined in:
- lib/feel/nodes.rb
Overview
-
string literal = ‘“’ , { character – (‘”’ | vertical space) }, ‘“’ ;
Instance Method Summary collapse
Instance Method Details
#eval(_context = {}) ⇒ Object
393 394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/feel/nodes.rb', line 393 def eval(_context={}) # Collect all characters and process escape sequences string_value = chars.elements.map do |char| if char.respond_to?(:text_value) && char.text_value.start_with?("\\") process_escape_sequence(char.text_value) else char.text_value end end.join string_value end |