enum

Measure::Volume::Unit

Inherits Enum < Comparable < Value < Object

The units available to Volume instances. Note that there are multiple aliases of each one. This allows you to say volume.to(:liters) or volume.to(:ml).

Constants

Liter = 0
Liters = 0
L = 0
Milliliter = 1
Milliliters = 1
ML = 1
Centiliter = 2
Centiliters = 2
CL = 2
Kiloliter = 3
Kiloliters = 3
KL = 3
CubicMeter = 4
CubicMeters = 4
M3 = 4
CubicCentimeter = 5
CubicCentimeters = 5
CC = 5
CM3 = 5
CubicMillimeter = 6
CubicMillimeters = 6
MM3 = 6
CubicMicrometer = 7
CubicMicrometers = 7
CubicMicron = 7
CubicMicrons = 7
CubicNanometer = 8
CubicNanometers = 8
NM3 = 8
CubicFoot = 9
CubicFeet = 9
Ft3 = 9
CubicYard = 10
CubicYards = 10
Yd3 = 10
CubicInch = 11
CubicInches = 11
In3 = 11
CubicMile = 12
CubicMiles = 12
Mi3 = 12
Gallon = 13
Gallons = 13
Gal = 13
Quart = 14
Quarts = 14
Qt = 14
Pint = 15
Pints = 15
Pt = 15
Cup = 16
Cups = 16
FluidOunce = 17
FluidOunces = 17
FlOz = 17
Tablespoon = 18
Tablespoons = 18
Tbsp = 18
Teaspoon = 19
Teaspoons = 19
Tsp = 19

Instance methods

cc?

Returns true if this enum value equals CC

Source
centiliter?

Returns true if this enum value equals Centiliter

Source
centiliters?

Returns true if this enum value equals Centiliters

Source
cl?

Returns true if this enum value equals CL

Source
cm3?

Returns true if this enum value equals CM3

Source
cubic_centimeter?

Returns true if this enum value equals CubicCentimeter

Source
cubic_centimeters?

Returns true if this enum value equals CubicCentimeters

Source
cubic_feet?

Returns true if this enum value equals CubicFeet

Source
cubic_foot?

Returns true if this enum value equals CubicFoot

Source
cubic_inch?

Returns true if this enum value equals CubicInch

Source
cubic_inches?

Returns true if this enum value equals CubicInches

Source
cubic_meter?

Returns true if this enum value equals CubicMeter

Source
cubic_meters?

Returns true if this enum value equals CubicMeters

Source
cubic_micrometer?

Returns true if this enum value equals CubicMicrometer

Source
cubic_micrometers?

Returns true if this enum value equals CubicMicrometers

Source
cubic_micron?

Returns true if this enum value equals CubicMicron

Source
cubic_microns?

Returns true if this enum value equals CubicMicrons

Source
cubic_mile?

Returns true if this enum value equals CubicMile

Source
cubic_miles?

Returns true if this enum value equals CubicMiles

Source
cubic_millimeter?

Returns true if this enum value equals CubicMillimeter

Source
cubic_millimeters?

Returns true if this enum value equals CubicMillimeters

Source
cubic_nanometer?

Returns true if this enum value equals CubicNanometer

Source
cubic_nanometers?

Returns true if this enum value equals CubicNanometers

Source
cubic_yard?

Returns true if this enum value equals CubicYard

Source
cubic_yards?

Returns true if this enum value equals CubicYards

Source
cup?

Returns true if this enum value equals Cup

Source
cups?

Returns true if this enum value equals Cups

Source
fl_oz?

Returns true if this enum value equals FlOz

Source
fluid_ounce?

Returns true if this enum value equals FluidOunce

Source
fluid_ounces?

Returns true if this enum value equals FluidOunces

Source
ft3?

Returns true if this enum value equals Ft3

Source
gal?

Returns true if this enum value equals Gal

Source
gallon?

Returns true if this enum value equals Gallon

Source
gallons?

Returns true if this enum value equals Gallons

Source
in3?

Returns true if this enum value equals In3

Source
inspect(io : IO) : Nil

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]
Source
kiloliter?

Returns true if this enum value equals Kiloliter

Source
kiloliters?

Returns true if this enum value equals Kiloliters

Source
kl?

Returns true if this enum value equals KL

Source
l?

Returns true if this enum value equals L

Source
liter?

Returns true if this enum value equals Liter

Source
liters?

Returns true if this enum value equals Liters

Source
m3?

Returns true if this enum value equals M3

Source
mi3?

Returns true if this enum value equals Mi3

Source
milliliter?

Returns true if this enum value equals Milliliter

Source
milliliters?

Returns true if this enum value equals Milliliters

Source
ml?

Returns true if this enum value equals ML

Source
mm3?

Returns true if this enum value equals MM3

Source
nm3?

Returns true if this enum value equals NM3

Source
pint?

Returns true if this enum value equals Pint

Source
pints?

Returns true if this enum value equals Pints

Source
pt?

Returns true if this enum value equals Pt

Source
qt?

Returns true if this enum value equals Qt

Source
quart?

Returns true if this enum value equals Quart

Source
quarts?

Returns true if this enum value equals Quarts

Source
tablespoon?

Returns true if this enum value equals Tablespoon

Source
tablespoons?

Returns true if this enum value equals Tablespoons

Source
tbsp?

Returns true if this enum value equals Tbsp

Source
teaspoon?

Returns true if this enum value equals Teaspoon

Source
teaspoons?

Returns true if this enum value equals Teaspoons

Source
tsp?

Returns true if this enum value equals Tsp

Source
yd3?

Returns true if this enum value equals Yd3

Source