lib/quantify/unit/non_si_unit.rb in quantify-1.0.5 vs lib/quantify/unit/non_si_unit.rb in quantify-1.1.0

- old
+ new

@@ -10,10 +10,10 @@ # These are required in order to perform conversion, e.g. kelvin => celsius # and therefore become and additional attribute to NonSI units # def initialize(options=nil) @scaling = 0.0 - if options.is_a? Hash and options[:scaling] + if options.is_a?(Hash) && options[:scaling] @scaling = options.delete(:scaling).to_f end super(options) end