class Filesize
def initialize(size, type = BINARY)
-
type
(SI, BINARY
) -- Which type to use for conversions. -
size
(Number
) -- A file size, in bytes.
def initialize(size, type = BINARY) @bytes = size.to_i @type = type end
type
(SI, BINARY
)
-- Which type to use for conversions.
size
(Number
)
-- A file size, in bytes.
def initialize(size, type = BINARY) @bytes = size.to_i @type = type end