class Radiosonde::DSL::ComparisonOperator
Constants
- ALIASES
Public Class Methods
conv_to_alias(operator)
click to toggle source
# File lib/radiosonde/dsl/comparison_operator.rb, line 10 def conv_to_alias(operator) ALIASES[operator] || operator end
normalize(operator)
click to toggle source
# File lib/radiosonde/dsl/comparison_operator.rb, line 18 def normalize(operator) (ALIASES.respond_to?(:key) ? ALIASES.key(operator) : ALIASES.index(operator)) || operator end
valid?(operator)
click to toggle source
# File lib/radiosonde/dsl/comparison_operator.rb, line 14 def valid?(operator) ALIASES.keys.include?(operator) or ALIASES.values.include?(operator) end