Class: EleetScript::StringNode

Inherits:
LiteralNode show all
Includes:
Interpolatable
Defined in:
lib/lang/nodes.rb,
lib/lang/interpreter.rb

Constant Summary

Constants included from Interpolatable

Interpolatable::INTERPOLATE_RX

Instance Method Summary collapse

Methods included from Interpolatable

#interpolate

Methods inherited from LiteralNode

#to_s

Instance Method Details

#eval(context) ⇒ Object



126
127
128
# File 'lib/lang/interpreter.rb', line 126

def eval(context)
  context.root_ns["String"].new_with_value(interpolate(value, context), context.namespace_context)
end