# File lib/dm-core/property_set.rb, line 85 def set(resource, values) if values.kind_of?(Array) && values.length != length raise ArgumentError, "+values+ must have a length of #{length}, but has #{values.length}", caller end each_with_index { |property,i| property.set(resource, values.nil? ? nil : values[i]) } end