abstract struct Units::Prefix

Direct Known Subclasses

Defined in:

units/data/prefixes.cr
units/prefix.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.all #

[View source]
def self.find(string : String, method : Mode = Mode::PrimaryCode) #

[View source]

Instance Method Detail

def initialize #

[View source]
def 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]

Macro Detail

macro prop(name) #

[View source]