Class: Faker::Games::Myst

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/myst.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, shuffle!, translate, unique, with_locale

Class Method Details

.ageString

Produces the name of an age from Myst.

Examples:

Faker::Games::Myst.age #=> "Relto"

Returns:

  • (String)

Available since:

  • 1.9.0



42
43
44
# File 'lib/faker/games/myst.rb', line 42

def age
  fetch('games.myst.ages')
end

.characterString

Produces the name of a character from Myst.

Examples:

Faker::Games::Myst.character #=> "Gehn"

Returns:

  • (String)

Available since:

  • 1.9.0



55
56
57
# File 'lib/faker/games/myst.rb', line 55

def character
  fetch('games.myst.characters')
end

.creatureString

Produces the name of a creature from Myst.

Examples:

Faker::Games::Myst.creature #=> "squee"

Returns:

  • (String)

Available since:

  • 1.9.0



29
30
31
# File 'lib/faker/games/myst.rb', line 29

def creature
  fetch('games.myst.creatures')
end

.gameString

Produces the name of a game from the Myst series.

Examples:

Faker::Games::Myst.game #=> "Myst III: Exile"

Returns:

  • (String)

Available since:

  • 1.9.0



16
17
18
# File 'lib/faker/games/myst.rb', line 16

def game
  fetch('games.myst.games')
end

.quoteString

Produces a quote from Myst.

Examples:

Faker::Games::Myst.quote #=> "I realized, the moment I fell into the fissure, that the Book would not be destroyed as I had planned."

Returns:

  • (String)

Available since:

  • 1.9.0



68
69
70
# File 'lib/faker/games/myst.rb', line 68

def quote
  fetch('games.myst.quotes')
end