def self.primary_code : String
#
struct Units::Prefix::Exa
- Units::Prefix::Exa
- Units::Prefix
- Struct
- Value
- Object
Defined in:
units/data/prefixes.crClass Method Summary
- .name : String
- .primary_code : String
- .scalar : BigDecimal
- .scalar=(scalar : BigDecimal)
- .secondary_code : String
- .symbol : String
-
.to_s(mode : Mode = Mode::PrimaryCode)
Returns a nicely readable and concise string representation of this object, typically intended for users.
Instance methods inherited from struct Units::Prefix
initialize
initialize,
to_s(mode : Mode = Mode::PrimaryCode)
to_s
Constructor methods inherited from struct Units::Prefix
new
new
Class methods inherited from struct Units::Prefix
all
all,
find(string : String, method : Mode = Mode::PrimaryCode)
find
Class 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
.