Class: Faker::Show

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

Class Method Details

.adult_musicalString

Produces the name of a musical for an older audience

Examples:

Faker::Alphanumeric.alpha
  #=> "West Side Story"

Returns:

  • (String)

Available since:

  • 2.13.0



16
17
18
# File 'lib/faker/music/show.rb', line 16

def adult_musical
  fetch('show.adult_musical')
end

.kids_musicalString

Produces the name of a musical for a younger audience

Examples:

Faker::Alphanumeric.alpha
  #=> "Into the Woods JR."

Returns:

  • (String)

Available since:

  • 2.13.0



30
31
32
# File 'lib/faker/music/show.rb', line 30

def kids_musical
  fetch('show.kids_musical')
end

.playString

Produces the name of a play

Examples:

Faker::Alphanumeric.alpha
  #=> "Death of a Salesman"

Returns:

  • (String)

Available since:

  • 2.13.0



44
45
46
# File 'lib/faker/music/show.rb', line 44

def play
  fetch('show.play')
end