Sha256: e62ea99d0fc57a284d94e88a5f42c041ca26fe8e1a99436ac3efdea488fc255f
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require 'puppet/parser/ast/branch' class Puppet::Parser::AST # Define a variable. Stores the value in the current scope. class VarDef < AST::Branch associates_doc attr_accessor :name, :value, :append @settor = true # Look up our name and value, and store them appropriately. The # lexer strips off the syntax stuff like '$'. def evaluate(scope) name = @name.safeevaluate(scope) value = @value.safeevaluate(scope) parsewrap do scope.setvar(name,value, @file, @line, @append) end end def each [@name,@value].each { |child| yield child } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.9 | lib/puppet/parser/ast/vardef.rb |
puppet-0.24.7 | lib/puppet/parser/ast/vardef.rb |
puppet-0.24.8 | lib/puppet/parser/ast/vardef.rb |