# File lib/puppet/parser/templatewrapper.rb, line 56 56: def method_missing(name, *args) 57: # We have to tell lookupvar to return :undefined to us when 58: # appropriate; otherwise it converts to "". 59: value = scope.lookupvar(name.to_s, false) 60: if value != :undefined 61: return value 62: else 63: # Just throw an error immediately, instead of searching for 64: # other missingmethod things or whatever. 65: raise Puppet::ParseError, "Could not find value for '%s'" % name 66: end 67: end