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