# File lib/puppet/util/log/destination.rb, line 18 18: def self.match?(obj) 19: # Convert single-word strings into symbols like :console and :syslog 20: if obj.is_a? String and obj =~ /^\w+$/ 21: obj = obj.downcase.intern 22: end 23: 24: @matches.each do |thing| 25: # Search for direct matches or class matches 26: return true if thing === obj or thing == obj.class.to_s 27: end 28: false 29: end