lib/phys/units/utils.rb in phys-units-0.9.0 vs lib/phys/units/utils.rb in phys-units-0.9.1
- old
+ new
@@ -21,10 +21,10 @@
x
end
when Numeric
x
when Unit
- x.to_num
+ x.to_numeric
else
raise "Not Numric or #{self.class}: #{x.inspect}"
end
end