Class: Faker::Theater

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

.adult_musicalString

Produces the name of a musical for an older audience

Examples:

Faker::Theater.adult_musical
  #=> "Mamma Mia!"

Returns:



16
17
18
# File 'lib/faker/default/theater.rb', line 16

def adult_musical
  fetch('theater.adult_musical')
end

.kids_musicalString

Produces the name of a musical for a younger audience

Examples:

Faker::Theater.kids_musical
  #=> "Into the Woods JR."

Returns:



30
31
32
# File 'lib/faker/default/theater.rb', line 30

def kids_musical
  fetch('theater.kids_musical')
end

.playString

Produces the name of a play

Examples:

Faker::Theater.play
  #=> "Death of a Salesman"

Returns:



44
45
46
# File 'lib/faker/default/theater.rb', line 44

def play
  fetch('theater.play')
end