struct Units::RuntimeUnit(X)
- Units::RuntimeUnit(X)
- Struct
- Value
- Object
Included Modules
Extended Modules
Defined in:
runtime_unit.crConstructors
Class Method Summary
- .from(value, measure : self)
- .from_amperes(value)
- .from_candela(value)
- .from_kelvin(value)
- .from_kilograms(value)
- .from_meters(value)
- .from_moles(value)
- .from_seconds(value)
Instance Method Summary
- #*(other : AlgebraicUnit) : RuntimeUnit
- #*(other) : RuntimeUnit
- #**(other) : RuntimeUnit
- #+(other : AlgebraicUnit) : RuntimeUnit
- #-(other : AlgebraicUnit) : RuntimeUnit
- #- : self
- #/(other : AlgebraicUnit) : RuntimeUnit
- #/(other) : RuntimeUnit
- #dimension : Dimension
- #inverse : self
- #left_add(lhs : AlgebraicUnit) : RuntimeUnit
-
#left_add(lhs)
other + self
- #left_multiply(lhs : AlgebraicUnit) : RuntimeUnit
-
#left_multiply(lhs) : RuntimeUnit
lhs * self
- #to(measure : AlgebraicUnit)
- #to_amperes
- #to_candela
- #to_kelvin
- #to_kilograms
- #to_meters
- #to_moles
- #to_seconds
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