README.txt in ruby-units-0.3.8 vs README.txt in ruby-units-0.3.9

- old
+ new

@@ -1,8 +1,8 @@ =Ruby Units -Version: 0.3.7 +Version: 0.3.9 Kevin C. Olbrich, Ph.D. kevin.olbrich@gmail.com http://www.sciwerks.com @@ -80,9 +80,11 @@ unit1 === unit2 # => true if units and quantity are the same, even if 'equivalent' by <=> unit.to('ft') # convert unit1 + unit2 >> "ft" # converts result of math to 'ft' (unit1 + unit2).to('ft') # converts result to 'ft' + +Any object that defines a 'to_unit' method will be automatically coerced to a unit during calculations. ==Text Output Units will display themselves nicely based on the preferred abbreviation for the units and prefixes. Since Unit implements a Unit#to_s, all that is needed in most cases is: "#{Unit.new('1 mm')}" #=> "1 mm"