Skip to content

Commit

Permalink
Add YARD docs for Faker::BossaNova. (faker-ruby#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorshea authored and vbrazo committed Dec 6, 2019
1 parent e6ca063 commit 72173c8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/faker/default/bossa_nova.rb
Expand Up @@ -3,10 +3,28 @@
module Faker
class BossaNova < Base
class << self
##
# Produces the name of a bossa nova artist.
#
# @return [String]
#
# @example
# Faker::BossaNova.artist #=> "Tom Jobin"
#
# @faker.version 1.8.3
def artist
fetch('bossa_nova.artists')
end

##
# Produces a bossa nova song.
#
# @return [String]
#
# @example
# Faker::BossaNova.song #=> "Chega de Saudade"
#
# @faker.version 1.8.3
def song
fetch('bossa_nova.songs')
end
Expand Down

0 comments on commit 72173c8

Please sign in to comment.