# File lib/puppet/property.rb, line 172
172:   def insync?(is)
173:     self.devfail "#{self.class.name}'s should is not array" unless @should.is_a?(Array)
174: 
175:     # an empty array is analogous to no should values
176:     return true if @should.empty?
177: 
178:     # Look for a matching value
179:     return (is == @should or is == @should.collect { |v| v.to_s }) if match_all?
180: 
181:     @should.each { |val| return true if is == val or is == val.to_s }
182: 
183:     # otherwise, return false
184:     false
185:   end