module Units

Defined in:

dimension.cr
formatting.cr
runtime_unit.cr
si_info.cr
units.cr

Constant Summary

SI_INFO = { {:mass, :kilograms, :kg}, {:length, :meters, :m}, {:luminant_intensity, :candela, :cd}, {:temperature, :kelvin, :K}, {:current, :amperes, :A}, {:amount, :moles, :mol}, {:time, :seconds, :s} }
VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.build(&) #

[View source]
def self.from(value, measure) #

[View source]
def self.from_days(value) #

[View source]
def self.from_feet(value) #

[View source]
def self.from_ft(value) #

[View source]
def self.from_hours(value) #

[View source]
def self.from_hr(value) #

[View source]
def self.from_in(value) #

[View source]
def self.from_inches(value) #

[View source]
def self.from_m(value) #

[View source]
def self.from_meters(value) #

[View source]
def self.from_min(value) #

[View source]
def self.from_minutes(value) #

[View source]
def self.from_s(value) #

[View source]
def self.from_seconds(value) #

[View source]
def self.from_yards(value) #

[View source]
def self.from_yd(value) #

[View source]
def self.from_years(value) #

[View source]
def self.from_yr(value) #

[View source]