Class: UOM::Dimension
- Inherits:
-
Object
- Object
- UOM::Dimension
- Defined in:
- lib/uom/dimension.rb
Overview
Dimension enumerates the standard Unit dimensions. These consist of the seven physical International System of Units SI base unit dimensions and an INFORMATION dimension for representing computer storage.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Dimension
constructor
A new instance of Dimension.
- #to_s ⇒ Object
Constructor Details
#initialize(label) ⇒ Dimension
Returns a new instance of Dimension.
9 10 11 |
# File 'lib/uom/dimension.rb', line 9 def initialize(label) @label = label end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
7 8 9 |
# File 'lib/uom/dimension.rb', line 7 def label @label end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/uom/dimension.rb', line 13 def to_s @label end |