Class: Confuscript::Nodes::Values::StringNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/confuscript/nodes/values/string_node.rb

Instance Method Summary collapse

Methods inherited from BaseNode

#find_node

Instance Method Details

#evaluate(context) ⇒ Object



5
6
7
8
# File 'lib/confuscript/nodes/values/string_node.rb', line 5

def evaluate(context)
  # Return the inner string of the node
  text_value[1..-2] # Remove the quotes
end