MemoryConversion::Bytes
Inherits Struct < Value < Object
Constructors
Instance methods
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
Convert this number of bytes to the equivalent number of bytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Exabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Gigabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of kilobytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Megabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Petabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Terabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Yottabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.
Convert this number of bytes to the equivalent number of Zettabytes. This uses the metric used by storage manufacturers to inflate their capacity values, by using powers of 10 instead of powers of two.