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
334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/feel/nodes.rb', line 334 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 |