Quanty class for Ruby ver 1.2 by Masahiro Tanaka 2004-02-29
Description
* A Ruby class to express QUANTITY, which is a set of value and unit.
Featuring unit conversion and arithmetic operation among quantities.
Requirement
* Ruby ver 1.6.x or later.
Installation
* 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
www9.xdsl.ne.jp/~aamine/en/index.html
and install it.
* Back to quanty directory.
Run `make clean', `make' and install it.
Usage
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]
License
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
condition.
Author
Masahiro Tanaka <[email protected]>