# File lib/puppet/network/rights.rb, line 197 197: def restrict_method(m) 198: m = m.intern if m.is_a?(String) 199: 200: unless ALL.include?(m) 201: raise ArgumentError, "'%s' is not an allowed value for method directive" % m 202: end 203: 204: # if we were allowing all methods, then starts from scratch 205: if @methods === ALL 206: @methods = [] 207: end 208: 209: if @methods.include?(m) 210: raise ArgumentError, "'%s' is already in the '%s' ACL" % [m, name] 211: end 212: 213: @methods << m 214: end