struct Units::RuntimeUnit(X)

Included Modules

Extended Modules

Defined in:

runtime_unit.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Units::Casting

to(measure : AlgebraicUnit)
to(&)
to
, to_amperes to_amperes, to_candela to_candela, to_days to_days, to_feet to_feet, to_ft to_ft, to_hours to_hours, to_hr to_hr, to_in to_in, to_inches to_inches, to_kelvin to_kelvin, to_kilograms to_kilograms, to_meters to_meters, to_min to_min, to_minutes to_minutes, to_moles to_moles, to_seconds to_seconds, to_yards to_yards, to_yd to_yd, to_years to_years, to_yr to_yr

Instance methods inherited from module Units::AlgebraicUnit(X)

*(other : AlgebraicUnit) : AlgebraicUnit
*(other) : AlgebraicUnit
*
, **(other) : AlgebraicUnit **, +(other : AlgebraicUnit) : AlgebraicUnit
+(other)
+
, -(other : AlgebraicUnit) : AlgebraicUnit
-(other)
- : AlgebraicUnit
-
, /(other : AlgebraicUnit) : AlgebraicUnit
/(other) : AlgebraicUnit
/
, cb cb, cbrt cbrt, dimension : Dimension dimension, inverse : AlgebraicUnit inverse, left_add(lhs) left_add, left_multiply(lhs) left_multiply, left_subtract(lhs) left_subtract, sq sq, sqrt sqrt, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(value : X, dimension : Dimension) #

[View source]

Class Method Detail

def self.from(value, measure : self) #

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

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

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

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

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

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

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

[View source]

Instance Method Detail

def *(other : AlgebraicUnit) : RuntimeUnit #

[View source]
def *(other) : RuntimeUnit #

[View source]
def **(other) : RuntimeUnit #

[View source]
def +(other : AlgebraicUnit) : RuntimeUnit #

[View source]
def -(other : AlgebraicUnit) : RuntimeUnit #

[View source]
def - : self #

[View source]
def /(other : AlgebraicUnit) : RuntimeUnit #

[View source]
def /(other) : RuntimeUnit #

[View source]
def dimension : Dimension #

[View source]
def inverse : self #

[View source]
def left_add(lhs : AlgebraicUnit) : RuntimeUnit #

[View source]
def left_add(lhs) #

other + self


[View source]
def left_multiply(lhs : AlgebraicUnit) : RuntimeUnit #

[View source]
def left_multiply(lhs) : RuntimeUnit #

lhs * self


[View source]
def to(measure : AlgebraicUnit) #

[View source]
def to_amperes #

[View source]
def to_candela #

[View source]
def to_kelvin #

[View source]
def to_kilograms #

[View source]
def to_meters #

[View source]
def to_moles #

[View source]
def to_seconds #

[View source]