Class: Faker::Games::Control

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/games/control.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

.altered_itemString

Produces the name of an Altered Item

Examples:

Faker::Games::Control.altered_item #=> "Rubber Duck"

Returns:

  • (String)

Available since:

  • 2.13.0



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

def altered_item
  fetch('games.control.altered_item')
end

.altered_world_eventString

Produces the location of an Altered World Event (AWE)

Examples:

Faker::Games::Control.altered_world_event #=> "Ordinary, Wisconsin"

Returns:

  • (String)

Available since:

  • 2.13.0



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

def altered_world_event
  fetch('games.control.altered_world_event')
end

.characterString

Produces the name of a character from Control.

Examples:

Faker::Games::Control.character #=> "Jesse Faden"

Returns:

  • (String)

Available since:

  • 2.13.0



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

def character
  fetch('games.control.character')
end

.hissString

Produces a line from the Hiss incantation

Examples:

Faker::Games::Control.hiss #=> "Push the fingers through the surface into the wet."

Returns:

  • (String)

Available since:

  • 2.13.0



81
82
83
# File 'lib/faker/games/control.rb', line 81

def hiss
  fetch('games.control.hiss')
end

.locationString

Produces the name of a location from Control.

Examples:

Faker::Games::Control.location #=> "Dimensional Research"

Returns:

  • (String)

Available since:

  • 2.13.0



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

def location
  fetch('games.control.location')
end

.object_of_powerString

Produces the name of an Object of Power (OoP)

Examples:

Faker::Games::Control.object_of_power #=> "Hotline"

Returns:

  • (String)

Available since:

  • 2.13.0



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

def object_of_power
  fetch('games.control.object_of_power')
end

.quoteString

Produces a quote from Control

Examples:

Faker::Games::Control.quote #=> "He never liked fridge duty"

Returns:

  • (String)

Available since:

  • 2.13.0



107
108
109
# File 'lib/faker/games/control.rb', line 107

def quote
  fetch('games.control.quote')
end

.the_boardString

< Produces a line/quote/message from The Board >

Examples:

Faker::Games::Control.the_board #=> "< You/We wield the Gun/You. The Board appoints you. Congratulations, Director. >"

Returns:

  • (String)

Available since:

  • 2.13.0



94
95
96
# File 'lib/faker/games/control.rb', line 94

def the_board
  fetch('games.control.the_board')
end