Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeragamba committed Jul 2, 2020
1 parent cf90559 commit 5de66cb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/faker/default/code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
#
# @return [String]
#
# @exmaple
# @example
# Faker::Code.npi #=> "9804062802"
#
# @faker.version 1.9.4
Expand All @@ -20,11 +20,12 @@ def npi
##
# Produces a random ISBN (International Standard Book Number) code.
#
# @param base [Number] the length of the code to generate (either 10 or 13)
# @return [String]
#
# @example
# Faker::Code.isbn(base: 13) #=> "896579606969-8"
# @exmaple
# @example
# Faker::Code.isbn #=> "170366802-2"
#
# @faker.version 2.2.0
Expand All @@ -39,11 +40,12 @@ def isbn(legacy_base = NOT_GIVEN, base: 10)
##
# Produces a random EAN (European Article Number) code.
#
# @param base [Number] the length of the code to generate (either 8 or 13)
# @return [String]
#
# @example
# Faker::Code.ean(base: 8) #=> "36941070"
# @exmaple
# @example
# Faker::Code.ean #=> "9941880131907"
#
# @faker.version 2.2.0
Expand Down Expand Up @@ -75,6 +77,8 @@ def rut
##
# Produces a random NRIC (National Registry Identity Card) code.
#
# @param min_age [Number] the min age of the person in years
# @param max_age [Number] the max age of the person in years
# @return [String]
#
# @example
Expand Down Expand Up @@ -115,7 +119,7 @@ def imei
end

##
# Retrieves a real Amazon ASIN code from https://archive.org/details/asin_listing.
# Retrieves a real Amazon ASIN code from https://archive.org/details/asin_listing
#
# @return [String]
#
Expand Down

0 comments on commit 5de66cb

Please sign in to comment.