Class: NOTAM::E
Overview
The E item contains a textual description of what this NOTAM is all about.
Constant Summary collapse
- RE =
%r( \A E\)\s? (?<content>.+) \z )mx.freeze
Constants inherited from Item
Item::ICAO_RE, Item::ID_RE, Item::TIME_RE
Instance Attribute Summary
Attributes inherited from Item
Instance Method Summary collapse
Methods inherited from Item
#fail!, #initialize, #inspect, #parse, #type, type
Constructor Details
This class inherits a constructor from NOTAM::Item
Instance Method Details
#content ⇒ Object
15 16 17 |
# File 'lib/notam/item/e.rb', line 15 def content captures['content'] end |
#merge ⇒ Object
26 27 28 |
# File 'lib/notam/item/e.rb', line 26 def merge super(:content, :translated_content) end |
#translated_content ⇒ Object
19 20 21 22 23 |
# File 'lib/notam/item/e.rb', line 19 def translated_content content.split(/\b/).map do |word| (NOTAM::(word, translate: true) || word).upcase end.join end |