Skip to content

Commit

Permalink
Protected doesn't mean Public.
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed May 12, 2010
1 parent 817c423 commit 1524ba0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/whois/answer/parser.rb
Expand Up @@ -122,7 +122,7 @@ def init_parsers
answer.parts.reverse.map { |part| self.class.parser_for(part) } answer.parts.reverse.map { |part| self.class.parser_for(part) }
end end


# Selects the first parser in <tt>#parsers</tt> # Protected: Selects the first parser in <tt>#parsers</tt>
# where <tt>given</tt> matches <tt>status</tt>. # where <tt>given</tt> matches <tt>status</tt>.
# #
# property - The Symbol property to search for # property - The Symbol property to search for
Expand All @@ -148,7 +148,7 @@ def select_parser(property, status = :any)
end end




# Protected: Returns the proper parser instance for given <tt>part</tt>. # Public: Returns the proper parser instance for given <tt>part</tt>.
# The parser class is selected according to the # The parser class is selected according to the
# value of the <tt>#host</tt> attribute for given <tt>part</tt>. # value of the <tt>#host</tt> attribute for given <tt>part</tt>.
# #
Expand All @@ -170,7 +170,7 @@ def self.parser_for(part)
parser_klass(part.host).new(part) parser_klass(part.host).new(part)
end end


# Protected: Detects the proper parser class according to given <tt>host</tt> # Public: Detects the proper parser class according to given <tt>host</tt>
# and returns the class constant. # and returns the class constant.
# #
# This method autoloads missing parser classes. If you want to define # This method autoloads missing parser classes. If you want to define
Expand Down Expand Up @@ -206,7 +206,7 @@ def self.parser_klass(host)
Parser::Blank Parser::Blank
end end


# Protected: Converts <tt>host</tt> to the corresponding parser class name. # Public: Converts <tt>host</tt> to the corresponding parser class name.
# #
# host - A String with the host # host - A String with the host
# #
Expand All @@ -224,7 +224,7 @@ def self.host_to_parser(host)
gsub(/(?:^|_)(.)/) { $1.upcase } gsub(/(?:^|_)(.)/) { $1.upcase }
end end


# Protected: Requires the file at <tt>whois/answer/parser/#{name}</tt>. # Public: Requires the file at <tt>whois/answer/parser/#{name}</tt>.
# #
# name - A string with the file name # name - A string with the file name
# #
Expand Down

0 comments on commit 1524ba0

Please sign in to comment.