struct Units::Prefix::Giga

Defined in:

units/data/prefixes.cr

Class Method Summary

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

def self.name : String #

def self.primary_code : String #

def self.scalar : BigDecimal #

[View source]
def self.scalar=(scalar : BigDecimal) #

[View source]
def self.secondary_code : String #

def self.symbol : String #

def self.to_s(mode : Mode = Mode::PrimaryCode) #
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.


[View source]