Returns the name of the unit as a string.
UnitMeasurements::Length.new(1, "m").unit.to_s => "m"
Returns:
The name of the unit.
Author:
Harshal V. Ladhe
Since:
1.0.0
121 122 123
# File 'lib/unit_measurements/unit.rb', line 121 def to_s name end