Quanty class for Ruby ver 1.2   by Masahiro Tanaka  2004-02-29


* A Ruby class to express QUANTITY, which is a set of value and unit.
  Featuring unit conversion and arithmetic operation among quantities.


* Ruby ver 1.6.x or later.


* Install Quanty class library.

  1. Extract source code from tar.gz file.
  2. Make & install:

ruby extconf.rb make make install

* If you use Ruby 1.6 and want Racc binary library
  (faster than included script but not always necessary),
  Get Racc from


  and install it.

* Back to quanty directory.
  Run `make clean', `make' and install it.


require "quanty"
x = Quanty(1.23,"km")

See document in quanty-en.rd or quanty-jp.rd.

Tested Platform

* Ruby 1.8.1 (2003-12-25) [i686-linux]


Ruby Quanty class is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.

But `units.dat' `lib/quanty/parse.rb' files in the distribution
are not written by the author.  See each file for the copying


Masahiro Tanaka <[email protected]>