Refresh

This website rubydoc.info/github/faker-ruby/faker/Faker/NatoPhoneticAlphabet is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh.

Class: Faker::NatoPhoneticAlphabet

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/nato_phonetic_alphabet.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.code_wordString

Produces a code word from the NATO phonetic alphabet.

Examples:

Faker::NatoPhoneticAlphabet.code_word #=> "Hotel"

Returns:

  • (String)

Available since:

  • 1.9.0



15
16
17
# File 'lib/faker/default/nato_phonetic_alphabet.rb', line 15

def code_word
  fetch('nato_phonetic_alphabet.code_word')
end