abstract struct Units::Prefix
- Units::Prefix
- Struct
- Value
- Object
Direct Known Subclasses
- Units::Prefix::Atto
- Units::Prefix::Centi
- Units::Prefix::Deci
- Units::Prefix::Deka
- Units::Prefix::Exa
- Units::Prefix::Femto
- Units::Prefix::Gibi
- Units::Prefix::Giga
- Units::Prefix::Hecto
- Units::Prefix::Kibi
- Units::Prefix::Kilo
- Units::Prefix::Mebi
- Units::Prefix::Mega
- Units::Prefix::Micro
- Units::Prefix::Milli
- Units::Prefix::Nano
- Units::Prefix::None
- Units::Prefix::Peta
- Units::Prefix::Pico
- Units::Prefix::Tebi
- Units::Prefix::Tera
- Units::Prefix::Yocto
- Units::Prefix::Yotta
- Units::Prefix::Zepto
- Units::Prefix::Zetta
Defined in:
units/data/prefixes.crunits/prefix.cr
Constructors
Class Method Summary
Instance Method Summary
- #initialize
-
#to_s(mode : Mode = Mode::PrimaryCode)
Returns a nicely readable and concise string representation of this object, typically intended for users.
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.