Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
Added YARD tags to Countries.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 3, 2009
1 parent 3ed4de4 commit 3b1a99f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/shodan/countries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,16 @@ module Countries
CentralAfricanRepublic = 'CF'

#
# Iterates over every Country Code, passing ech one to the given
# _block_.
# Iterates over every Country Code.
#
# @yield [country]
# The given block will receive every Country Code.
#
# @yieldparam [String] country
# The ISO 3166-1993 Country Code.
#
# @return [Countries]
# The Countries module.
#
def Countries.each(&block)
self.constants.each do |name|
Expand Down

0 comments on commit 3b1a99f

Please sign in to comment.