Values for weight are now validated and corrected in a central place (DRY), i.e. in the method WeightedArray#validate_weight_value(weight).
Values for weight are now validated and corrected in a central place (DRY),
i.e. in the method WeightedArray#validate_weight_value(weight).

hermannfass/weightedarray