# File lib/puppet/util/tagging.rb, line 8 8: def tag(*ary) 9: @tags ||= [] 10: 11: qualified = [] 12: 13: ary.collect { |tag| tag.to_s.downcase }.each do |tag| 14: fail(Puppet::ParseError, "Invalid tag %s" % tag.inspect) unless valid_tag?(tag) 15: qualified << tag if tag.include?("::") 16: @tags << tag unless @tags.include?(tag) 17: end 18: 19: # LAK:NOTE See http://snurl.com/21zf8 [groups_google_com] 20: qualified.collect { |name| x = name.split("::") }.flatten.each { |tag| @tags << tag unless @tags.include?(tag) } 21: end