lib/convert_unit/mass.rb in convert_unit-0.1.0 vs lib/convert_unit/mass.rb in convert_unit-0.2.0

- old
+ new

@@ -17,10 +17,10 @@ end def to(c_unit) c_unit.downcase! unit_symbol = Mass::UNITS_SYMBOL[c_unit] || c_unit - raise ArgumentError, 'Unpossible conversion type' unless Mass::UNITS.include?(unit_symbol) + raise ArgumentError, 'Impossible conversion type' unless Mass::UNITS.include?(unit_symbol) Mass.new(convert_to(unit_symbol), unit_symbol) end end end