lib/runby_pace/pace.rb in runby_pace-0.6.144 vs lib/runby_pace/pace.rb in runby_pace-0.6.145
- old
+ new
@@ -16,9 +16,10 @@
when String
init_from_string time_or_pace, distance
else
raise 'Invalid Time or Pace'
end
+ freeze
end
def convert_to(target_distance)
target_distance = Distance.new(target_distance) unless target_distance.is_a?(Distance)
return self if @distance == target_distance