# File lib/puppet/provider/nameservice.rb, line 46 46: def options(name, hash) 47: unless resource_type.validattr?(name) 48: raise Puppet::DevError, "%s is not a valid attribute for %s" % 49: [name, resource_type.name] 50: end 51: @options ||= {} 52: @options[name] ||= {} 53: 54: # Set options individually, so we can call the options method 55: # multiple times. 56: hash.each do |param, value| 57: @options[name][param] = value 58: end 59: end