lib/aipp/regions/LF/AD-3.1.rb in aipp-0.2.4 vs lib/aipp/regions/LF/AD-3.1.rb in aipp-0.2.5

- old
+ new

@@ -2,11 +2,11 @@ module LF # Helipads class AD31 < AIP - include AIPP::LF::Helpers::Common + include AIPP::LF::Helpers::Base using AIXM::Refinements DEPENDS = %w(AD-2) HOSTILITIES = { @@ -50,10 +50,10 @@ @airport.add_usage_limitation(:other) do |other| other.remarks = "Réservé aux administrations de l'État / reserved for State administrations" end end # FATOs and helipads - text = trs[2].css('span[id*="ADHP.REVETEMENT"]').text.remove(/tlof\s*|\s*\(.*?\)/i).downcase + text = trs[2].css('span[id*="ADHP.REVETEMENT"]').text.remove(/tlof\s*|\s*\(.*?\)/i).downcase.compact surface = text.blank? ? {} : SURFACES.metch(text) lighting = lighting_from(trs[1].css('span[id*="ADHP.BALISAGE"]').text.cleanup) fatos_from(trs[1].css('span[id*="ADHP.DIM_FATO"]').text).each { |f| @airport.add_fato f } helipads_from(trs[1].css('span[id*="ADHP.DIM_TLOF"]').text).each do |helipad| helipad.surface.composition = surface[:composition]