Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Conv::Unit
Inherits
Struct
<
Value
<
Object
Constructors
new
(symbol :
String
, kind :
UnitKind
, to_base :
Float64
->
Float64
, from_base :
Float64
->
Float64
)
Source
Instance methods
clone
Source
convert
(value :
Float64
, to other :
Unit
) :
Float64
Source
copy_with
(symbol _symbol = @symbol, kind _kind = @kind, to_base _to_base = @to_base, from_base _from_base = @from_base)
Source
from_base
kind
symbol
to_base