class Faker::Fantasy::Tolkien
Public Class Methods
character()
click to toggle source
Produces a character from Tolkien’s legendarium
@return [String]
@example
Faker::Fantasy::Tolkien.character #=> "Goldberry"
@faker.version next
# File lib/faker/fantasy/tolkien.rb, line 19 def character fetch('tolkien.characters') end
location()
click to toggle source
Produces a location from Tolkien’s legendarium
@return [String]
@example
Faker::Fantasy::Tolkien.location #=> "Helm's Deep"
@faker.version next
# File lib/faker/fantasy/tolkien.rb, line 33 def location fetch('tolkien.locations') end
poem()
click to toggle source
Produces the name of a poem from Tolkien’s legendarium
@return [String]
@example
Faker::Fantasy::Tolkien.poem #=> "Chip the glasses and crack the plates"
@faker.version next
# File lib/faker/fantasy/tolkien.rb, line 61 def poem fetch('tolkien.poems') end
race()
click to toggle source
Produces a race from Tolkien’s legendarium
@return [String]
@example
Faker::Fantasy::Tolkien.race #=> "Uruk-hai"
@faker.version next
# File lib/faker/fantasy/tolkien.rb, line 47 def race fetch('tolkien.races') end