lib/runby_pace/distance.rb in runby_pace-0.6.125 vs lib/runby_pace/distance.rb in runby_pace-0.6.126

- old
+ new

@@ -19,9 +19,10 @@ end end def convert_to(target_uom) target_uom = DistanceUnit.new target_uom unless target_uom.is_a?(DistanceUnit) + return self if @uom == target_uom target_multiplier = kilometers / (target_uom.conversion_factor * 1.0) Distance.new target_uom, target_multiplier end def meters