Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Unite provides module extensions to your ruby objects for unit/value support.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .bundle
Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .ruby-version
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 unite.gemspec
README
gem install unite

gem 'unite'


Based on 

http://www.cs.utexas.edu/users/novak/units95.html


Handles the following dimensions 

 [:length, :time, :temperature, :mass, :current, :substance, :luminosity, :money]
 
 
 Note: Conversion of Money is not currently supported
 
 
 Can use Unite::Quantity to represent values or include the functionality into your own objects.
 
 Look at https://github.com/stellard/unite/blob/master/lib/unite/quantity.rb for a minum implementation
 
 Examples: (needs more info here)
 
 Unite::Quantity.init("1000*km")
 Unite::Quantity.init("1000","km")

 Unit definitions are found here
 
 https://github.com/stellard/unite/blob/master/lib/unite/lookup/definitions.rb
 
 Specs show good examples of use. 
 
 I will add more to readme

Something went wrong with that request. Please try again.