Class: Confuscript::Nodes::Values::VariableNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/confuscript/nodes/values/variable_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/variable_node.rb', line 5

def evaluate(context)
  # Return the value of the variable from the context
  context[text_value]
end