1 module Puppet::Parser::Functions
2 newfunction(:getfromhash, :type => :rvalue) do |args|
7 # allows getting of hash[key] or even hash[key1][key2] etc.
9 raise Puppet::ParseError, "argument[#{keys_done.join('][')}] is not a hash." unless x.kind_of?(Hash)
10 unless x.has_key?(key)
23 # vim:set shiftwidth=2: