Class: Crisp::Nodes::StringLiteral

Inherits:
Primitive
  • Object
show all
Defined in:
lib/crisp/nodes/string_literal.rb

Overview

The string node

Instance Method Summary collapse

Methods inherited from Primitive

#eval

Methods inherited from Base

#eval, #resolve_and_eval

Instance Method Details

#resolve(env) ⇒ Object

return a string



6
7
8
# File 'lib/crisp/nodes/string_literal.rb', line 6

def resolve(env)
  text_value[1..-2]
end