-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Smashing Pumpkins to the Music module
- Loading branch information
1 parent
552b91d
commit 95acd6b
Showing
5 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Faker::Music::SmashingPumpkins | ||
|
||
```ruby | ||
Faker::Music::SmashingPumpkins.musician #=> "D'arcy Wretsky" | ||
|
||
Faker::Music::SmashingPumpkins.album #=> "Mellon Collie and the Infinite Sadness" | ||
|
||
Faker::Music::SmashingPumpkins.song #=> "Disarm" | ||
|
||
Faker::Music::SmashingPumpkins.lyric #=> "The world is a vampire, sent to drain, secret destroyers, hold you up to the flames" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'music' | ||
|
||
module Faker | ||
class Music | ||
class SmashingPumpkins < Base | ||
class << self | ||
## | ||
# Produces the name of a member of the Smashing Pumpkins (current and former) | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::Music::SmashingPumpkins.musician #=> "Billy Corgan" | ||
# | ||
# @faker.version next | ||
def musician | ||
fetch('smashing_pumpkins.musicians') | ||
end | ||
|
||
## | ||
# Produces the name of an album by the Smashing Pumpkins. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::Music::SmashingPumpkins.album #=> "Siamese Dream" | ||
# | ||
# @faker.version next | ||
def album | ||
fetch('smashing_pumpkins.albums') | ||
end | ||
|
||
## | ||
# Produces a random Smashing Pumpkins song lyric. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::Music::SmashingPumpkins.lyric #=> "Love is suicide" | ||
# Faker::Music::SmashingPumpkins.lyric #=> "Breathin' underwater, and livin' under glass" | ||
# | ||
# @faker.version next | ||
def lyric | ||
fetch('smashing_pumpkins.lyric') | ||
end | ||
|
||
## | ||
# Produces the name of a song by the Smashing Pumpkins. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::Music::SmashingPumpkins.song #=> "Stand Inside My Love" | ||
# | ||
# @faker.version next | ||
def song | ||
fetch('smashing_pumpkins.songs') | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.