Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/music/hiphop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Faker::Music::HipHop

```ruby
Faker::Music::HipHop.artist #=> "Lil Wayne"
Faker::Music::HipHop.groups #=> "G-Unit"
Faker::Music::HipHop.subgenres #=> "Alternative"
48 changes: 48 additions & 0 deletions lib/faker/music/hiphop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# frozen_string_literal: true

module Faker
class Music
class Hiphop < Base
class << self
##
# Produces the name of a Hip Hop Artist
#
# @return [String]
#
# @example
# Faker::Music::Hiphop.artist #=> "Lil Wayne"
#
# @faker.version next
def artist
fetch('hiphop.artist')
end

##
# Produces the name of a Hip Hop Group
#
# @return [String]
#
# @example
# Faker::Music::Hiphop.groups #=> "OVO"
#
# @faker.version next
def groups
fetch('hiphop.groups')
end

##
# Produces the name of a Hip Hop Subgenre
#
# @return [String]
#
# @example
# Faker::Music::Hiphop.subgeneres #=> "Alternative"
#
# @faker.version next
def subgenres
fetch('hiphop.subgenres')
end
end
end
end
end
Loading