class Filesize

def initialize(size, type = BINARY)

Parameters:
  • 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