Class: Faker::Fantasy::Tolkien
- Defined in:
- lib/faker/fantasy/tolkien.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.character ⇒ String
Produces a character from Tolkien’s legendarium.
-
.location ⇒ String
Produces a location from Tolkien’s legendarium.
-
.poem ⇒ String
Produces the name of a poem from Tolkien’s legendarium.
-
.race ⇒ String
Produces a race from Tolkien’s legendarium.
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
Produces a character from Tolkien’s legendarium
19 20 21 |
# File 'lib/faker/fantasy/tolkien.rb', line 19 def character fetch('tolkien.characters') end |
.location ⇒ String
Produces a location from Tolkien’s legendarium
33 34 35 |
# File 'lib/faker/fantasy/tolkien.rb', line 33 def location fetch('tolkien.locations') end |
.poem ⇒ String
Produces the name of a poem from Tolkien’s legendarium
61 62 63 |
# File 'lib/faker/fantasy/tolkien.rb', line 61 def poem fetch('tolkien.poems') end |
.race ⇒ String
Produces a race from Tolkien’s legendarium
47 48 49 |
# File 'lib/faker/fantasy/tolkien.rb', line 47 def race fetch('tolkien.races') end |