Class: Faker::Religion::Bible
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.character ⇒ String
Returns a random bible character.
-
.location ⇒ String
Returns a random location(city or town) from the bible.
-
.quote ⇒ String
Returns a random quote from the location.
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, shuffle!, translate, unique, with_locale
Class Method Details
.character ⇒ String
Returns a random bible character.
Faker::Religion::Bible.character #=> “Jesus”
18 19 20 |
# File 'lib/faker/religion/bible.rb', line 18 def character fetch('bible.character') end |
.location ⇒ String
Returns a random location(city or town) from the bible
Faker::Religion::Bible.location #=> “Nasareth”
31 32 33 |
# File 'lib/faker/religion/bible.rb', line 31 def location fetch('bible.location') end |
.quote ⇒ String
Returns a random quote from the location.
Faker::Religion::Bible.quote #=> “Seek first the kingdom of God ”
44 45 46 |
# File 'lib/faker/religion/bible.rb', line 44 def quote fetch('bible.quote') end |