Class: Faker::Music::Prince

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

.albumString

Produces a random Prince album.

Examples:

Faker::Music::Prince.album #=> "The Gold Experience"
Faker::Music::Prince.album #=> "Purple Rain"

Returns:

  • (String)

Available since:

  • 2.13.0



45
46
47
# File 'lib/faker/music/prince.rb', line 45

def album
  fetch('prince.album')
end

.bandString

Produces a random Prince-associated band.

Examples:

Faker::Music::Prince.band #=> "The New Power Generation"

Returns:

  • (String)

Available since:

  • 2.13.0



58
59
60
# File 'lib/faker/music/prince.rb', line 58

def band
  fetch('prince.band')
end

.lyricString

Produces a random Prince song lyric.

Examples:

Faker::Music::Prince.lyric #=> "Dearly beloved, we are gathered here today to get through this thing called life."
Faker::Music::Prince.lyric #=> "You were so hard to find, the beautiful ones, they hurt you every time."

Returns:

  • (String)

Available since:

  • 2.13.0



31
32
33
# File 'lib/faker/music/prince.rb', line 31

def lyric
  fetch('prince.lyric')
end

.songString

Produces a random Prince song.

Examples:

Faker::Music::Prince.song #=> "Raspberry Beret"
Faker::Music::Prince.song #=> "Starfish And Coffee"

Returns:

  • (String)

Available since:

  • 2.13.0



17
18
19
# File 'lib/faker/music/prince.rb', line 17

def song
  fetch('prince.song')
end