Sha256: ec44038907a261243cbd809c4d1aeef6ad5302ba99ba379eabca8af3543ebd25
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 Bytes
Contents
class Puppet::Parser::AST # The AST object for the parameters inside ObjectDefs and Selectors. class ObjectParam < AST::Branch attr_accessor :value, :param def each [@param,@value].each { |child| yield child } end # Return the parameter and the value. def evaluate(scope) param = @param.safeevaluate(scope) value = @value.safeevaluate(scope) return [param, value] end def tree(indent = 0) return [ @param.tree(indent + 1), ((@@indline * indent) + self.typewrap(self.pin)), @value.tree(indent + 1) ].join("\n") end def to_s return "%s => %s" % [@param,@value] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.13.1 | lib/puppet/parser/ast/objectparam.rb |
puppet-0.13.2 | lib/puppet/parser/ast/objectparam.rb |
puppet-0.13.0 | lib/puppet/parser/ast/objectparam.rb |