lib/radiosonde/dsl/unit.rb in radiosonde-0.0.8 vs lib/radiosonde/dsl/unit.rb in radiosonde-0.1.0
- old
+ new
@@ -26,9 +26,10 @@
'Gigabits/Second' => :gigabits_per_second,
'Terabits/Second' => :terabits_per_second,
'Count/Second' => :count_per_second,
'None' => :none,
}
+
class << self
def conv_to_alias(unit)
ALIASES[unit] || unit
end