Skip to content

Commit

Permalink
Add YARD docs for Faker::DcComics (#1913)
Browse files Browse the repository at this point in the history
* Add YARD docs for Faker::DcComics

Signed-off-by: Aswin Muthu Kumar <ashelangovan97@gmail.com>

* Minor doc update

Signed-off-by: Aswin Muthu Kumar <ashelangovan97@gmail.com>

* Update lib/faker/default/dc_comics.rb

Co-Authored-By: Connor Shea <connor.james.shea@gmail.com>

* Update lib/faker/default/dc_comics.rb

Co-Authored-By: Connor Shea <connor.james.shea@gmail.com>

* Update lib/faker/default/dc_comics.rb

Co-Authored-By: Connor Shea <connor.james.shea@gmail.com>

* Update lib/faker/default/dc_comics.rb

Co-Authored-By: Connor Shea <connor.james.shea@gmail.com>

* Update lib/faker/default/dc_comics.rb

Co-Authored-By: Connor Shea <connor.james.shea@gmail.com>

Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
Co-authored-by: Connor Shea <connor.james.shea@gmail.com>
  • Loading branch information
3 people committed Feb 15, 2020
1 parent e9a0c23 commit 24eff8d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions lib/faker/default/dc_comics.rb
Expand Up @@ -2,22 +2,67 @@

module Faker
class DcComics < Base
##
# Produces a hero name from DC Comics
#
# @return [String]
#
# @example
# Faker::DcComics.hero #=> "Batman"
#
# @faker.version 1.9.2
def self.hero
fetch('dc_comics.hero')
end

##
# Produces a heroine name from DC Comics
#
# @return [String]
#
# @example
# Faker::DcComics.heroine #=> "Supergirl"
#
# @faker.version 1.9.2
def self.heroine
fetch('dc_comics.heroine')
end

##
# Produces a villain name from DC Comics
#
# @return [String]
#
# @example
# Faker::DcComics.villain #=> "The Joker"
#
# @faker.version 1.9.2
def self.villain
fetch('dc_comics.villain')
end

##
# Produces a character name from DC Comics
#
# @return [String]
#
# @example
# Faker::DcComics.name #=> "Clark Kent"
#
# @faker.version 1.9.2
def self.name
fetch('dc_comics.name')
end

##
# Produces a comic book title from DC Comics
#
# @return [String]
#
# @example
# Faker::DcComics.title #=> "Batman: The Long Halloween"
#
# @faker.version 1.9.2
def self.title
fetch('dc_comics.title')
end
Expand Down

0 comments on commit 24eff8d

Please sign in to comment.