From: Jason Sweat Date: 2005-09-07T10:12:19+09:00 Subject: Re: [ANN] Units for Ruby On 9/6/05, Lucas Carlson wrote: > I have also created a new library to add units to numbers in Ruby: > > gem install units > http://units.rubyforge.org/ > > It is extremely simple to use: > > require 'units/standard' > 1.lb.to_ounces # => 16.0 > > require 'units/currency' > 1.euro.usd # => 1.2545 > > 1.usd.unit # => :usd > 1.usd.to_yen # => 108.9 # this information is grabbed on the fly > via a SOAP call > 1.usd.to_yet.unit # => :yen > > It is also very simple to add both static and dynamic conversions on > your own via add_unit_conversions and add_unit_aliases. > > I hope you find this library useful too. > > > # gem install units Attempting local installation of 'units' Local gem file not found: units*.gem Attempting remote installation of 'units' Updating Gem source index for: http://gems.rubyforge.org Successfully installed units-1.0.1 Installing RDoc documentation for units-1.0.1... lib/units/base.rb:50:86: ':' not followed by identified or operator lib/units/currency.rb:20:35: ':' not followed by identified or operator # ruby --version ruby 1.9.0 (2005-02-08) [i686-linux] Are these two errors important?