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