# File lib/puppet/network/rights.rb, line 211
211:     def restrict_method(m)
212:       m = m.intern if m.is_a?(String)
213: 
214:       raise ArgumentError, "'#{m}' is not an allowed value for method directive" unless ALL.include?(m)
215: 
216:       # if we were allowing all methods, then starts from scratch
217:       if @methods === ALL
218:         @methods = []
219:       end
220: 
221:       raise ArgumentError, "'#{m}' is already in the '#{name}' ACL" if @methods.include?(m)
222: 
223:       @methods << m
224:     end