create objects that store units, like volume = 3 m**3 or flow = 2 m**3 / second
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
units.rb
units.rb~
units_test.rb

README

This project allows you to create objects that mimic physical variables. 

For example

length = BaseUnit.new({:meter => 1, :quantity => 2.0})
width = BaseUnit.new({:meter => 1, :quantity => 11.0})

area = length * width
area.to_s
=> "22.0 meter**2"