Measure::Data::Unit
Inherits Enum < Comparable < Value < Object
Constants
Bit = 0
Bits = 0
Byte = 1
Bytes = 1
B = 1
Kilobyte = 2
Kilobytes = 2
KB = 2
Megabyte = 3
Megabytes = 3
MB = 3
Gigabyte = 4
Gigabytes = 4
GB = 4
Terabyte = 5
Terabytes = 5
TB = 5
Petabyte = 6
Petabytes = 6
PB = 6
Kibibyte = 7
Kibibytes = 7
KiB = 7
Mebibyte = 8
Mebibytes = 8
MiB = 8
Gibibyte = 9
Gibibytes = 9
GiB = 9
Tebibyte = 10
Tebibytes = 10
TiB = 10
Pibibyte = 11
Pibibytes = 11
PiB = 11
Instance methods
Returns an unambiguous String representation of this enum member.
In the case of a single member value, this is the fully qualified name of
the member (equivalent to #to_s with the enum name as prefix).
In the case of multiple members (for a flags enum), it's a call to Enum.[]
for recreating the same value.
If the value can't be represented fully by named members, the remaining value is appended.
Color::Red # => Color:Red
IOMode::None # => IOMode::None
(IOMode::Read | IOMode::Write) # => IOMode[Read, Write]
Color.new(10) # => Color[10]