struct

Units::Term

Inherits Comparable < Units::Compatible < Struct < Value < Object

Constructors

new(atom : Units::Atom | Nil = nil, prefix = Prefix::None, factor : Number = 1, exponent : Number = 1, note : String | Nil = nil)
Source

Instance methods

*(other : Unit | Term | Number)
Source
**(other : Number)
Source
/(other : Unit | Term | Number)
Source
atom
Source
depth
Source
exponent
Source
factor
Source
magnitude(scalar = scalar())
Source
note
Source
operate(operator : Operation, other : Number) : Term
Source
operate(operator : Operation, other : Unit | Term) : Unit
Source
prefix
Source
root_terms
Source
scalar(magnitude = 1)
Source
special?
Source
terminal?
Source