lib/unit_measurements/math.rb in unit_measurements-5.9.0 vs lib/unit_measurements/math.rb in unit_measurements-5.10.0

- old
+ new

@@ -62,11 +62,11 @@ # # @return [Measurement] A new +Measurement+ instance with the floored quantity. # # @author {Harshal V. Ladhe}[https://shivam091.github.io/] # @since 1.6.0 - def floor(ndigits =0) + def floor(ndigits = 0) self.class.new(quantity.floor(ndigits), unit) end # Returns ceiled quantity of the measurement. If +ndigits+ is not specified, # quantity is rounded to next higher +Integer+. @@ -82,10 +82,10 @@ # # @return [Measurement] A new +Measurement+ instance with the ceiled quantity. # # @author {Harshal V. Ladhe}[https://shivam091.github.io/] # @since 1.6.0 - def ceil(ndigits =0) + def ceil(ndigits = 0) self.class.new(quantity.ceil(ndigits), unit) end end end