# File lib/puppet/parser/scope.rb, line 190
190:   def lookupdefaults(type)
191:     values = {}
192: 
193:     # first collect the values from the parents
194:     unless parent.nil?
195:       parent.lookupdefaults(type).each { |var,value|
196:         values[var] = value
197:       }
198:     end
199: 
200:     # then override them with any current values
201:     # this should probably be done differently
202:     if @defaults.include?(type)
203:       @defaults[type].each { |var,value|
204:         values[var] = value
205:       }
206:     end
207: 
208:     #Puppet.debug "Got defaults for %s: %s" %
209:     #    [type,values.inspect]
210:     values
211:   end