84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# File 'lib/metar/data/runway_visible_range.rb', line 84
def to_s
distance_options = {
abbreviated: true,
precision: 0,
units: @units
}
s =
if @visibility2.nil?
I18n.t('metar.runway_visible_range.runway') +
' ' + @designator +
': ' + @visibility1.to_s(distance_options)
else
I18n.t('metar.runway_visible_range.runway') +
' ' + @designator +
': ' + I18n.t('metar.runway_visible_range.from') +
' ' + @visibility1.to_s(distance_options) +
' ' + I18n.t('metar.runway_visible_range.to') +
' ' + @visibility2.to_s(distance_options)
end
s += ' ' + I18n.t("tendency.#{tendency}") if !tendency.nil?
s
end
|