Class: Measurements::Unit::Cup

Inherits:
Object
  • Object
show all
Includes:
BaseUnit
Defined in:
lib/measurements/unit/cup.rb

Overview

The implementation of a cup. A cup is a neutral unit that belongs to the cooking unit system.

Constant Summary collapse

UNIT_TYPE =

Type for the Cup unit

Measurements::Type::NEUTRAL
UNIT_SYSTEM =

System type for the Cup unit

Measurements::System::COOK

Instance Attribute Summary

Attributes included from BaseUnit

#quantity, #type

Method Summary

Methods included from BaseUnit

#convert_to, #initialize, #inspect, #smart_convert, #type, #unit, #unit_abbr, #unit_system, #unit_type