struct Measure::Data

Included Modules

Defined in:

data.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(magnitude : Float64, unit : Measure::Data::Unit) #

[View source]

Instance Method Detail

def *(scalar : Number) : self #

[View source]
def +(other : self) : self #

[View source]
def -(other : self) : self #

[View source]
def /(scalar : Number) : self #

[View source]
def <=>(other : self) #

[View source]
def ==(other : self) #

[View source]
def magnitude : Float64 #

[View source]
def to(unit : Unit) : self #

[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def total_bytes #

[View source]
def unit : Unit #

[View source]