class Radiosonde::DSL::Unit
Constants
- ALIASES
Public Class Methods
conv_to_alias(unit)
click to toggle source
# File lib/radiosonde/dsl/unit.rb, line 33 def conv_to_alias(unit) ALIASES[unit] || unit end
normalize(unit)
click to toggle source
# File lib/radiosonde/dsl/unit.rb, line 41 def normalize(unit) (ALIASES.respond_to?(:key) ? ALIASES.key(unit) : ALIASES.index(unit)) || unit end
valid?(unit)
click to toggle source
# File lib/radiosonde/dsl/unit.rb, line 37 def valid?(unit) ALIASES.keys.include?(unit) or ALIASES.values.include?(unit) end