Class Puppet::Parser::AST::Variable
In: lib/puppet/parser/ast/leaf.rb
Parent: Name

A simple variable. This object is only used during interpolation; the VarDef class is used for assignment.

Methods

evaluate  

Public Instance methods

Looks up the value of the object in the scope tree (does not include syntactical constructs, like ’$’ and ’{}’).

[Source]

    # File lib/puppet/parser/ast/leaf.rb, line 84
84:         def evaluate(scope)
85:             parsewrap do
86:                 return scope.lookupvar(@value)
87:             end
88:         end

[Validate]