Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Measure::Data
Inherits
Comparable
<
Struct
<
Value
<
Object
Constructors
new
(magnitude :
Float64
, unit :
Measure::Data::Unit
)
Source
Instance methods
*
(scalar :
Number
) : self
Source
+
(other : self) : self
Source
-
(other : self) : self
Source
/
(scalar :
Number
) : self
Source
<=>
(other : self)
Source
==
(other : self)
Source
magnitude
Source
to
(unit :
Unit
) : self
Source
to_s
(io :
IO
) :
Nil
Same as
#inspect(io)
.
Source
total_bytes
Source
unit
Source
Nested types
Measure::Data::Unit