module FFaker::NatoAlphabet
def alphabetic_code
def alphabetic_code fetch_sample(ALPHABET_CODES) end
def callsign
def callsign codify('?-?-#') end
def code
def code fetch_sample(CODES) end
def codify(masks)
def codify(masks) masks.scan(/./).map do |c| case c when '#' then fetch_sample(NUMERIC_CODES) when '?' then fetch_sample(ALPHABET_CODES) when '.' then STOP_CODE else c end end.join end
def numeric_code
def numeric_code fetch_sample(NUMERIC_CODES) end