lib/faker/default/nato_phonetic_alphabet.rb in faker-2.3.0 vs lib/faker/default/nato_phonetic_alphabet.rb in faker-2.4.0
- old
+ new
@@ -1,9 +1,18 @@
# frozen_string_literal: true
module Faker
class NatoPhoneticAlphabet < Base
class << self
+ ##
+ # Produces a code word from the NATO phonetic alphabet.
+ #
+ # @return [String]
+ #
+ # @example
+ # Faker::NatoPhoneticAlphabet.code_word #=> "Hotel"
+ #
+ # @faker.version 1.9.0
def code_word
fetch('nato_phonetic_alphabet.code_word')
end
end
end