# File lib/puppet/parser/scope.rb, line 148 148: def lookupdefaults(type) 149: values = {} 150: 151: # first collect the values from the parents 152: unless parent.nil? 153: parent.lookupdefaults(type).each { |var,value| 154: values[var] = value 155: } 156: end 157: 158: # then override them with any current values 159: # this should probably be done differently 160: if @defaults.include?(type) 161: @defaults[type].each { |var,value| 162: values[var] = value 163: } 164: end 165: 166: #Puppet.debug "Got defaults for %s: %s" % 167: # [type,values.inspect] 168: return values 169: end