From 1524ba0b673f61906dbbe6b7b129f66784073bc1 Mon Sep 17 00:00:00 2001 From: Simone Carletti Date: Wed, 12 May 2010 21:51:12 +0200 Subject: [PATCH] Protected doesn't mean Public. --- lib/whois/answer/parser.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/whois/answer/parser.rb b/lib/whois/answer/parser.rb index 365ba73bc..a60f27eab 100644 --- a/lib/whois/answer/parser.rb +++ b/lib/whois/answer/parser.rb @@ -122,7 +122,7 @@ def init_parsers answer.parts.reverse.map { |part| self.class.parser_for(part) } end - # Selects the first parser in #parsers + # Protected: Selects the first parser in #parsers # where given matches status. # # property - The Symbol property to search for @@ -148,7 +148,7 @@ def select_parser(property, status = :any) end - # Protected: Returns the proper parser instance for given part. + # Public: Returns the proper parser instance for given part. # The parser class is selected according to the # value of the #host attribute for given part. # @@ -170,7 +170,7 @@ def self.parser_for(part) parser_klass(part.host).new(part) end - # Protected: Detects the proper parser class according to given host + # Public: Detects the proper parser class according to given host # and returns the class constant. # # This method autoloads missing parser classes. If you want to define @@ -206,7 +206,7 @@ def self.parser_klass(host) Parser::Blank end - # Protected: Converts host to the corresponding parser class name. + # Public: Converts host to the corresponding parser class name. # # host - A String with the host # @@ -224,7 +224,7 @@ def self.host_to_parser(host) gsub(/(?:^|_)(.)/) { $1.upcase } end - # Protected: Requires the file at whois/answer/parser/#{name}. + # Public: Requires the file at whois/answer/parser/#{name}. # # name - A string with the file name #