Class: SpotFeel::StringLiteral

Inherits:
Node
  • Object
show all
Defined in:
lib/spot_feel/nodes.rb

Overview

  1. string literal = ‘“’ , { character – (‘”’ | vertical space) }, ‘“’ ;

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(_context = {}) ⇒ Object



334
335
336
# File 'lib/spot_feel/nodes.rb', line 334

def eval(_context = {})
  text_value[1..-2]
end