Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
charqui
v0.1.6
Charqui
AppError
CLI
SizeKB
Built with Crystal 1.9.2
2023-10-08 13:22:14 UTC
struct
Charqui::SizeKB
Charqui::SizeKB
Struct
Value
Object
Defined in:
size_parser.cr
Constant Summary
SIZE_FROM_KB
=
{
"gb"
=>
1024
*
1024
,
"mb"
=>
1024
,
"kb"
=>
1
}
Constructors
.new
(raw : String =
"24mb"
)
Instance Method Summary
#raw
: String
#value
: Int32
Constructor Detail
def self.
new
(raw : String =
"24mb"
)
#
[
View source
]
Instance Method Detail
def
raw
: String
#
[
View source
]
def
value
: Int32
#
[
View source
]