Sha256: 4b18379ad87a62e2ffc25e3de6d619bf140d1c793340a064c1ba7a4673427cd4
Contents?: true
Size: 718 Bytes
Versions: 2
Compression:
Stored size: 718 Bytes
Contents
require 'puppet/parser/ast/branch' class Puppet::Parser::AST # The AST object for the parameters inside ResourceDefs and Selectors. class ResourceParam < AST::Branch attr_accessor :value, :param, :add def each [@param,@value].each { |child| yield child } end # Return the parameter and the value. def evaluate(hash) scope = hash[:scope] return Puppet::Parser::Resource::Param.new( :name => @param, :value => @value.safeevaluate(:scope => scope), :source => scope.source, :line => self.line, :file => self.file, :add => self.add ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.0 | lib/puppet/parser/ast/resourceparam.rb |
puppet-0.24.1 | lib/puppet/parser/ast/resourceparam.rb |