# File lib/puppet/parser/ast/resource_defaults.rb, line 13 13: def evaluate(scope) 14: # Use a resource reference to canonize the type 15: ref = Puppet::Resource::Reference.new(@type, "whatever") 16: type = ref.type 17: params = @params.safeevaluate(scope) 18: 19: parsewrap do 20: scope.setdefaults(type, params) 21: end 22: end