Skip to content

create objects that store units, like volume = 3 m**3 or flow = 2 m**3 / second

Notifications You must be signed in to change notification settings

zachaysan/BaseUnit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

create objects that store units, like volume = 3 m**3 or flow = 2 m**3 / second

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages